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 ¶
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.
Click to show internal directories.
Click to hide internal directories.