Skip to content
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

feat: add ability to send metrics to generic OTLP ingest point. DRY up code to avoid duplication since a lot of it is shared. #34

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

tylerburdsall
Copy link
Contributor

@tylerburdsall tylerburdsall commented Mar 8, 2024

Lightstep is not the only provider of metrics with an OTLP ingestion URL. This PR adds the ability for consumers to use any OTLP ingestion point for sending metrics.

Maintains backwards compatibilility with consumers of original APIs without changing business logic. A lot of the code is shared, so this was DRY'd up to keep things tidy.

Finally, made opentelemetryClient() a public function. This allows consumers to write extension functions local to their own code to support features like bifrocated metrics ingestion (e.g. I want to send my metrics to providers X and Y) without pigeon-holing the goometrics library itself to support this.

Copy link
Owner

@kvc0 kvc0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this makes sense to me.

@kvc0 kvc0 merged commit b147ecc into kvc0:main Mar 11, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants