-
Notifications
You must be signed in to change notification settings - Fork 73
feat(o11y): Introduce rpc.system.name and rpc.method in gRPC
#4121
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
Open
diegomarquezp
wants to merge
35
commits into
main
Choose a base branch
from
observability/tracing-attr/rpc.method-and-rpc.system
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
e5b927a
feat: pass whole context to traced callables
diegomarquezp 956ae29
fix: provide getter of SpanName with suffix
diegomarquezp dfe6216
fix: concise logic in http callable factory
diegomarquezp 0ee9f4a
chore: expose newTracer method without SpanName
diegomarquezp 3cddc1b
test: adapt tests
diegomarquezp 2880286
test: move span name tests
diegomarquezp 74f97f6
fix: remove SpanName out of ApiTracerContext
diegomarquezp 418b954
fix: keep suffix in the context class
diegomarquezp 7189841
fix: revert changes in httpjson
diegomarquezp e648a63
feat: merge context in factory method
diegomarquezp 6b679d5
test: revert traced callable tests
diegomarquezp 6fbcc08
feat: SpanTracerFactory to implement newTracer with context
diegomarquezp 8b0a403
chore: rename rpcMethod to fullMethodName
diegomarquezp b45401e
test: adapt traced callable tests
diegomarquezp a49828f
test: adapt showcase it
diegomarquezp 5ecf1b0
test: expand tests of SpanTracerFactory
diegomarquezp 82cc227
chore: lint grpc module
diegomarquezp d9c4d80
chore: fix license
diegomarquezp 401c7e8
fix: revert changes in operation callables
diegomarquezp ed58c7d
fix: use label for transport enum
diegomarquezp 342f4e3
docs: add javadocs to ApiTracerContext and LibraryMetadata
diegomarquezp 8a7dacd
fix: remove old exception message
diegomarquezp 5a845da
fix: remove unnecessary merge
diegomarquezp 00060d8
fix: revert unnecesary changes
diegomarquezp fc679c9
fix: remove suffix property
diegomarquezp 945366a
Merge remote-tracking branch 'origin/main' into observability/tracing…
diegomarquezp 726fbf1
fix: move span name logic to SpanName
diegomarquezp 6fb4ed6
fix: remove unnecessary transport check in SpanName
diegomarquezp f5cf4bf
chore: remove unnecessary comment
diegomarquezp 6711aa2
test: expand tests in ApiTracerContextTest
diegomarquezp aa2c2af
Update gax-java/gax/src/main/java/com/google/api/gax/tracing/Observab…
diegomarquezp efd2841
chore: mark TracedUnaryCallable nullable properties
diegomarquezp cee771f
Merge branch 'observability/tracing-attr/rpc.method-and-rpc.system' o…
diegomarquezp f5c2381
fix: make spanName non-nullable in traced callables
diegomarquezp 97d1aac
fix: rpc.method only in grpc
diegomarquezp 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
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
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
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
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 |
|---|---|---|
|
|
@@ -62,6 +62,26 @@ enum OperationType { | |
| */ | ||
| ApiTracer newTracer(ApiTracer parent, SpanName spanName, OperationType operationType); | ||
|
|
||
| /** | ||
| * Create a new {@link ApiTracer} that will be a child of the current context. | ||
| * | ||
| * @param parent the parent of this tracer | ||
| * @param tracerContext the method-definition-specific tracer context | ||
| * @param operationType the type of operation that the tracer will trace | ||
| */ | ||
| default ApiTracer newTracer( | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The downstream failure in bigtable is legit. One possible solution is to move |
||
| ApiTracer parent, ApiTracerContext tracerContext, OperationType operationType) { | ||
| SpanName spanName = SpanName.of(tracerContext); | ||
| return newTracer(parent, spanName, operationType); | ||
| } | ||
|
|
||
| /** | ||
| * @return the {@link ApiTracerContext} for this factory | ||
| */ | ||
| default ApiTracerContext getApiTracerContext() { | ||
| return ApiTracerContext.empty(); | ||
| } | ||
|
|
||
| /** | ||
| * Returns a new {@link ApiTracerFactory} that will use the provided context to infer attributes | ||
| * for all tracers created by the factory. | ||
|
|
||
Oops, something went wrong.
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.
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.
Batching is technically OOS also, but since this is a very low risk change, I think we can take it.