-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Fix incorrect metrics endpoint (#361)
* ✅ add unit test reproducing issue where metric reporting endpoint would only default to trace reporting endpoint if trace reporting endpoint was supplied via env var * 🐛 fix bug with metric reporting endpoint not falling back to reporting endpoint when supplied via YAML * ✅ add test test for non default metrics reporting endpoint * Revert "🐛 fix bug with metric reporting endpoint not falling back to reporting endpoint when supplied via YAML" This reverts commit 2c70107. * 🐛 fix bug more simply * 💡 fix comments in tests
- Loading branch information
Showing
4 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
otel-extensions/src/test/resources/nonDefaultMetricsEndpoint.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
service_name: service | ||
reporting: | ||
metric_endpoint: http://example.com:4317 |
3 changes: 3 additions & 0 deletions
3
otel-extensions/src/test/resources/nonDefaultReportingEndpoint.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
service_name: service | ||
reporting: | ||
endpoint: http://example.com:4317 |