otelsqlcommenter

package
v0.0.0-...-9cb596a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package otelsqlcommenter provides a convenience function for serializing OpenTelemetry span context into SQLCommenter attributes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext(ctx context.Context) context.Context

NewContext returns a new Context carrying "traceparent" and "tracestate" attributes.

"traceparent" and "tracestate" will be formatted in accordance with W3C Trace Context encoding (https://www.w3.org/TR/trace-context/).

NewContext returns ctx as-is if it does not carry a valid trace.SpanContext.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL