-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Disable tracer by default #18339
Disable tracer by default #18339
Conversation
libbeat/cmd/instance/beat.go
Outdated
// an APM Server running, making it opt-in | ||
if os.Getenv("ELASTIC_APM_ACTIVE") == "" { | ||
os.Setenv("ELASTIC_APM_ACTIVE", "false") | ||
} |
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.
Nit: now that there are a couple of APM-related initialization statements here in the init()
function, maybe move them into their own function like initRand()
?
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.
Left a nit but otherwise LGTM. Thanks for fixing!
💚 Build SucceededExpand to view the summary
Build stats
Test stats 🧪
|
What does this PR do?
This is a follow up of #17938
I made a wrong assumption there: If there is no
ELASTIC_APM_ACTIVE
env var, then the tracer is active.This PR reverts that behaviour to make it opt-in, instead opt-out.
This needs backport to 7.x and 7.8
Why is it important?
Because otherwise users will be required to have an APM Server running locally on a minor upgrade.
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.How to test this PR locally
Run any beat and check there are not outgoing connections to localhost:8200