-
Notifications
You must be signed in to change notification settings - Fork 75
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
Changes from 33 commits
e5b927a
956ae29
dfe6216
0ee9f4a
3cddc1b
2880286
74f97f6
418b954
7189841
e648a63
6b679d5
6fbcc08
8b0a403
b45401e
a49828f
5ecf1b0
82cc227
d9c4d80
401c7e8
ed58c7d
342f4e3
8a7dacd
5a845da
00060d8
fc679c9
945366a
726fbf1
6fb4ed6
f5cf4bf
6711aa2
aa2c2af
efd2841
cee771f
f5c2381
97d1aac
1b47eb9
ea86930
c7ea2e9
233f429
af531a4
7443c37
8242e37
1cd4717
6b67410
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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
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. @diegomarquezp Thanks for adding a new overloaded method! We need to remove this method as well.
Contributor
Author
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. Replace L85 with this method impl. and delete this method.
Contributor
Author
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. Regarding Bigtable: Removed method. Regarding Spanner: The traced callables were not setting |
||
| 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. | ||
|
|
||
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.