-
Notifications
You must be signed in to change notification settings - Fork 772
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
Support customized OTLP endpoint for log example #4066
Support customized OTLP endpoint for log example #4066
Conversation
if (!string.IsNullOrWhiteSpace(options.Endpoint)) | ||
{ | ||
otlpOptions.Endpoint = new Uri(options.Endpoint); | ||
} |
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.
Hmm, I guess TestMetrics.cs is also missing this functionality. At a minimum, probably makes sense to add it there too. Though, seems like there may be an opportunity to share some code between these examples, but maybe makes sense to consider that separately.
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.
Added the same Endpoint
command line option to metrics example. I did some minor cleanup to remove dup code, but agree that further cleanup could be done separately.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #4066 +/- ##
=======================================
Coverage 85.61% 85.62%
=======================================
Files 289 289
Lines 11255 11255
=======================================
+ Hits 9636 9637 +1
+ Misses 1619 1618 -1
|
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.
LGTM
Changes
The current OTLP example doesn't accept endpoint from command line. This PR add the support following the convention from OTLP trace/metrics exporter.
For significant contributions please make sure you have completed the following items:
CHANGELOG.md
updated for non-trivial changes