Package io.grpc.opentelemetry
Interface OpenTelemetryPlugin
-
- All Known Subinterfaces:
InternalOpenTelemetryPlugin
interface OpenTelemetryPlugin
Injects behavior intoGrpcOpenTelemetry
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
OpenTelemetryPlugin.ClientCallPlugin
static interface
OpenTelemetryPlugin.ClientStreamPlugin
static interface
OpenTelemetryPlugin.ServerStreamPlugin
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
enablePluginForChannel(java.lang.String target)
Limited ability to disable the plugin based on the target.OpenTelemetryPlugin.ClientCallPlugin
newClientCallPlugin()
OpenTelemetryPlugin.ServerStreamPlugin
newServerStreamPlugin(io.grpc.Metadata inboundMetadata)
-
-
-
Method Detail
-
enablePluginForChannel
default boolean enablePluginForChannel(java.lang.String target)
Limited ability to disable the plugin based on the target. This only has an effect for per-call metrics.Ideally this method wouldn't exist and it'd be handled by wrapping GrpcOpenTelemetry and conditionally delegating to it. But this is needed by CSM until ChannelBuilders have a consistent target over their life; currently specifying nameResolverFactory can change the target's scheme.
-
newClientCallPlugin
OpenTelemetryPlugin.ClientCallPlugin newClientCallPlugin()
-
newServerStreamPlugin
OpenTelemetryPlugin.ServerStreamPlugin newServerStreamPlugin(io.grpc.Metadata inboundMetadata)
-
-