Documentation ¶
Index ¶
- Constants
- Variables
- func DefaultTransportFormatter(path string) string
- func MessageReceivedEvent(ctx context.Context, message *pool.Message)
- func MessageSentEvent(ctx context.Context, message *pool.Message)
- func SetRequest(ctx context.Context, message *pool.Message)
- func Start(ctx context.Context, path, method string, opts ...Option) (context.Context, trace.Span)
- func StatusCodeAttr(c codes.Code) attribute.KeyValue
- type MessageType
- type Option
Constants ¶
View Source
const (
InstrumentationName = "github.com/plgd-dev/hub/coap-gateway/opentelemetry"
)
Variables ¶
Functions ¶
Types ¶
type MessageType ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option interface used for setting optional config properties.
func WithSpanOptions ¶
func WithSpanOptions(opts ...trace.SpanStartOption) Option
WithSpanOptions configures an additional set of trace.SpanOptions, which are applied to each new span.
func WithTracerProvider ¶
func WithTracerProvider(provider trace.TracerProvider) Option
WithTracerProvider specifies a tracer provider to use for creating a tracer. If none is specified, the global provider is used.
Click to show internal directories.
Click to hide internal directories.