Package io.grpc.opentelemetry
Interface InternalOpenTelemetryPlugin
-
@Internal public interface InternalOpenTelemetryPlugin
Accessors for making plugins.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
InternalOpenTelemetryPlugin.ClientCallPlugin
static interface
InternalOpenTelemetryPlugin.ClientStreamPlugin
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
enablePluginForChannel(String target)
Limited ability to disable the plugin based on the target.InternalOpenTelemetryPlugin.ClientCallPlugin
newClientCallPlugin()
io.grpc.opentelemetry.OpenTelemetryPlugin.ServerStreamPlugin
newServerStreamPlugin(Metadata inboundMetadata)
-
-
-
Method Detail
-
newClientCallPlugin
InternalOpenTelemetryPlugin.ClientCallPlugin newClientCallPlugin()
-
enablePluginForChannel
default boolean enablePluginForChannel(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.
-
newServerStreamPlugin
io.grpc.opentelemetry.OpenTelemetryPlugin.ServerStreamPlugin newServerStreamPlugin(Metadata inboundMetadata)
-
-