-
Notifications
You must be signed in to change notification settings - Fork 144
Update OTLP Metric Exporter Creation #1473
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
Update OTLP Metric Exporter Creation #1473
Conversation
| ); | ||
|
|
||
| // Create metricReaders array and add OTLP reader if environment variables request it | ||
| try { |
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.
No changelog update? Or did I miss it?
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.
This project does not have a changelog. Open to adding one in another PR.
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.
Interesting, if it makes sense to have a CHANGELOG for these changes, then adding that to another PR sounds like a plan.
rads-1996
left a comment
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
This pull request improves how the
AKSLoaderclass detects and configures the OTLP metric exporter based on theOTEL_METRICS_EXPORTERenvironment variable. The main change is to ensure that "otlp" is recognized correctly when specified as a comma-separated value among other exporters, and not as part of another word. Several new unit tests were added to verify this behavior for different scenarios.Logic improvements to OTLP exporter detection:
AKSLoaderto check for "otlp" as a distinct value in theOTEL_METRICS_EXPORTERenvironment variable, supporting comma-separated lists and ignoring partial matches (e.g., "otlp-custom" does not trigger the exporter). (src/agent/aksLoader.ts)Expanded test coverage for exporter detection:
OTEL_METRICS_EXPORTERvalue. (test/unitTests/agent/aksLoader.tests.ts)test/unitTests/agent/aksLoader.tests.ts)