-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DNM: Allow systemd-only auto instrumentation #3489
Conversation
6a04886
to
6660db1
Compare
> 1. To prevent conflicts and duplicate traces/metrics, only one package should be installed on the target system. | ||
> 2. The configuration files and the options defined within are only applicable for the respective package that is | ||
> installed. For example, `/usr/lib/splunk-instrumentation/instrumentation.conf` is only applicable with | ||
> `splunk-otel-auto-instrumentation`, and `` is only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> `splunk-otel-auto-instrumentation`, and `` is only | |
> `splunk-otel-auto-instrumentation`, and `00-splunk-otel-javaagent.conf` is only |
Should this be a reference to the systemd drop-in file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, I'll update it.
./packaging/00-splunk-otel-javaagent.conf) drop-in file defines the following environment variables to | ||
enable the installed agent(s) to auto instrument supported Java applications running as `systemd` services: | ||
|
||
- `JAVA_TOOL_OPTIONS=-javaagent:/usr/lib/splunk-instrumentation/splunk-otel-javaagent.jar` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's also add OTEL_EXPORTER_OTLP_ENDPOINT as a default option in the drop-in file too. Quick question: If there are specific options set from the installers (eg. deployment.environment) or profiling, would the relevant env variable be set here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can add any environment variable to this file or in a separate drop-in file created by the installers.
Closing this in favor of #3506 |
splunk-otel-auto-instrumentation
andlibsplunk.so
as-is (moved code frominstrumentation/
toinstrumentation/splunk-otel-auto-instrumentation/
)splunk-otel-systemd-auto-instrumentation
that includes the java agent and a systemd drop-in file withJAVA_TOOL_OPTIONS
TODO: Update installers to support the systemd package and configuration.