-
Notifications
You must be signed in to change notification settings - Fork 158
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
add support for always on profiling to zero config #2538
Conversation
-Dsplunk.profiler.enabled=true -Dsplunk.profiler.memory.enabled=true -Dsplunk.metrics.enabled=true These are turned off by default, so existing users will not be affected at this time.
instrumentation/README.md
Outdated
### generate_service_name (optional) | ||
|
||
Set this value to `false` to prevent the preloader from setting the `OTEL_SERVICE_NAME` environment variable. | ||
Default: `true`. |
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.
Is there a doc or brief description you could provide of what the false
behavior is?
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.
Which takes precedence if both generate_service_name
is true
and service_name
is set?
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.
Turns out there really isn't a doc yet that describes in detail what the instrumentation library does, although there is this. But I've added a couple of sentences to explain the implications of the false behavior.
Regarding precedence, generate_service_name=true
will cause the .so generate the service name either dynamically or via the service_name
override. If it's false, no service name will be set, regardless of the value of the service_name
override. I've added an explanation to the readme as well as a test case.
This change adds three new configuration parameters that individually turn on the following flags:
-Dsplunk.profiler.enabled=true
-Dsplunk.profiler.memory.enabled=true
-Dsplunk.metrics.enabled=true
These are turned off by default, so existing users will not be affected at this time.