Move process discovery out of auto#1890
Conversation
89ca3e1 to
2083684
Compare
2083684 to
fa79f6e
Compare
damemi
left a comment
There was a problem hiding this comment.
@MrAlias wdyt about moving the entire internal/pkg/process to its own top-level package, such as go.opentelemetry.io/auto/process?
This is coming from looking at the Probe api, which is currently tied to the process package through the targetdetails arg
Given that not all probes will be tied to a process, and process detection and management is going to move up to the consumer level, I think it makes sense to not have it be tied in that way. But it could be useful for the consumers who are implementing process management for us to provide that code as a helper package. Curious what you think?
I'm looking at refactoring the I agree we will need some top-level package to represent a package for the probe API. I'm not in favor of just moving the whole package as is given things I'm seeing there, but we can surely add something at the top level that makes sense when we add the probe API. That said, I do not plan to move the |
|
@MrAlias sounds good, and yeah I assumed that there are refactoring changes needed (didn't mean that we could just literally move the entire package wholesale as-is). My main point is having something external that can be used with the external Probe api. I think that will be a prerequisite for that refactor |
|
Gotcha, sounds like we're on the same page 😀 |
fa79f6e to
f2b918d
Compare
Have the CLI manage process discovery via a executable file path.
f2b918d to
d77fb18
Compare
Resolve #1887
auto.NewInstrumentation.OTEL_GO_AUTO_TARGET_EXEin the CLI instead ofauto.NewInstrumentationWithTargetoption-target-exeCLI flag to configure the target executable path-target-pidCLI flag to configure the target pidOTEL_GO_AUTO_TARGET_PIDin the CLI