lightstep / lightstep-tracer-go

The Lightstep distributed tracing library for Go
https://lightstep.com
MIT License
98 stars 54 forks source link

Problematic tracer metrics defaults #256

Closed ahayworth closed 3 years ago

ahayworth commented 3 years ago

👋

Hello, LightStep friends -

It seems that #249 turned metrics reporting on globally, and also bypassed any collector hosts that were configured.

This is causing something of a headache at GitHub, because now our go services are trying to report metrics directly to lightstep-managed ingest points, rather than our own endpoints. Worse still; they're often failing to connect and are now spamming our internal error tracking system.

Was it intentional to enable this by default, and to specifically bypass configured collectors? It seems like this was brought up in the PR review but was not addressed before it was merged.

If possible, could you please push a new version that:

We'd appreciate it if you could do that. It'd save us quite a bit of work internally, re-configuring and re-deploying everything.

Some things to consider when deciding if this should be enabled or not, and what hosts should be used:

Thanks!

cc @marwan-at-work

andrewhsu commented 3 years ago

From the conversations outside of this issue, capturing discussion here: we'll address issue by adding a check for env variable upon startup to disable metrics reporting. The reason for this is that the environment variable would be ignored by older releases and you can set it for any future releases, and would require only a redeploy rather than in-code changes.

This would also allow other users of the tracer to continue functioning as they are.

ahayworth commented 3 years ago

Thank you! ❤️ ❤️ ❤️ ❤️

codeboten commented 3 years ago

This change how now been released with v0.21.0