-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24854 from quarkusio/dependabot/maven/io.opentele…
…metry-opentelemetry-bom-1.13.0 Bump opentelemetry-bom from 1.12.0 to 1.13.0
- Loading branch information
Showing
8 changed files
with
61 additions
and
60 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
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
13 changes: 7 additions & 6 deletions
13
...tracing/grpc/GrpcAttributesExtractor.java → ...me/tracing/grpc/GrpcAttributesGetter.java
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 |
---|---|---|
@@ -1,21 +1,22 @@ | ||
package io.quarkus.opentelemetry.runtime.tracing.grpc; | ||
|
||
import io.grpc.Status; | ||
import io.opentelemetry.instrumentation.api.instrumenter.rpc.RpcAttributesExtractor; | ||
import io.opentelemetry.instrumentation.api.instrumenter.rpc.RpcAttributesGetter; | ||
|
||
enum GrpcAttributesGetter implements RpcAttributesGetter<GrpcRequest> { | ||
INSTANCE; | ||
|
||
class GrpcAttributesExtractor extends RpcAttributesExtractor<GrpcRequest, Status> { | ||
@Override | ||
protected String system(final GrpcRequest grpcRequest) { | ||
public String system(final GrpcRequest grpcRequest) { | ||
return "grpc"; | ||
} | ||
|
||
@Override | ||
protected String service(final GrpcRequest grpcRequest) { | ||
public String service(final GrpcRequest grpcRequest) { | ||
return grpcRequest.getMethodDescriptor().getServiceName(); | ||
} | ||
|
||
@Override | ||
protected String method(final GrpcRequest grpcRequest) { | ||
public String method(final GrpcRequest grpcRequest) { | ||
return grpcRequest.getMethodDescriptor().getBareMethodName(); | ||
} | ||
} |
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
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