-
Notifications
You must be signed in to change notification settings - Fork 9
feat: use a modified batch span processor that creates metrics #201
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
073ad15
feat: otel go metrics setup
tim-mwangi ca7b03c
cleanup metrics init
tim-mwangi 500d088
fix lint check fail in open census libs
tim-mwangi 9c8b2ca
update golangci lint gha to v0.3.4
tim-mwangi 48c419b
fix failing unit test
tim-mwangi 2c36f66
add service instance id to metrics resource
tim-mwangi 9bf078d
add metrics enabled config
tim-mwangi 1cebe35
use main branch for agent-config
tim-mwangi 8fa8a85
feat: use a modified batch span processor that creates metrics
tim-mwangi 023d45e
bsp sampled metrics
tim-mwangi 813e408
Merge remote-tracking branch 'origin/main' into metrics-round-2
tim-mwangi e5fedb7
fix lint issue
tim-mwangi 7fca494
fix failing unit test
tim-mwangi fe1ac96
define logger for modified bsp
tim-mwangi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
instrumentation/opentelemetry/batchspanprocessor/README.md
This file contains hidden or 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,11 @@ | ||
| # Modified Batch Span Processor | ||
|
|
||
| Since the original BatchSpanProcessor does not send metrics for spans received and spans dropped, the modified BatchSpanProcessor creates and populates those metrics so the user can track whether there are spans being dropped. | ||
|
|
||
| We have kept track of the original files modified so it's easier to figure out the changes we added. When upgrading, copy the newer files into their go.original counterparts and then do a diff with the modified.go files to figure out what changes to make in order to upgrade the modified files. | ||
|
|
||
| The paths of the files modified: | ||
| - [sdk/trace/batch_span_processor.go](https://github.com/open-telemetry/opentelemetry-go/blob/main/sdk/trace/batch_span_processor.go) | ||
| - [sdk/internal/env/env.go](https://github.com/open-telemetry/opentelemetry-go/blob/main/sdk/internal/env/env.go) | ||
|
|
||
| Since we cannot use [the internal logger]((https://github.com/open-telemetry/opentelemetry-go/blob/main/internal/global/internal_logging.go)), we have adapted it at [logger.go](instrumentation/opentelemetry/batchspanprocessor/logger.go). | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.