Documentation
¶
Overview ¶
Package otelogen provides OpenTelemetry tracing for ogen.
Index ¶
- Constants
- func ClientDurationHistogram(meter metric.Meter) (metric.Float64Histogram, error)
- func ClientErrorsCountCounter(meter metric.Meter) (metric.Int64Counter, error)
- func ClientRequestCountCounter(meter metric.Meter) (metric.Int64Counter, error)
- func OperationID(v string) attribute.KeyValue
- func SemVersion() string
- func ServerDurationHistogram(meter metric.Meter) (metric.Float64Histogram, error)
- func ServerErrorsCountCounter(meter metric.Meter) (metric.Int64Counter, error)
- func ServerRequestCountCounter(meter metric.Meter) (metric.Int64Counter, error)
- func Version() string
- func WebhookName(v string) attribute.KeyValue
Constants ¶
View Source
const ( ClientRequestCount = "ogen.client.request_count" // Outgoing request count total ClientErrorsCount = "ogen.client.errors_count" // Outgoing errors total ClientDuration = "ogen.client.duration" // Outgoing end to end duration, milliseconds )
View Source
const ( ServerRequestCount = "ogen.server.request_count" // Incoming request count total ServerErrorsCount = "ogen.server.errors_count" // Incoming errors total ServerDuration = "ogen.server.duration" // Incoming end to end duration, milliseconds )
View Source
const ( // OperationIDKey by OpenAPI specification. OperationIDKey = attribute.Key("oas.operation") // WebhookNameKey by OpenAPI specification. WebhookNameKey = attribute.Key("oas.webhook.name") )
View Source
const Name = "github.com/jghiloni/ogen"
Name of instrumentation.
Variables ¶
This section is empty.
Functions ¶
func ClientDurationHistogram ¶
func ClientDurationHistogram(meter metric.Meter) (metric.Float64Histogram, error)
func ClientErrorsCountCounter ¶
func ClientErrorsCountCounter(meter metric.Meter) (metric.Int64Counter, error)
func ClientRequestCountCounter ¶
func ClientRequestCountCounter(meter metric.Meter) (metric.Int64Counter, error)
func SemVersion ¶
func SemVersion() string
SemVersion is the semantic version to be supplied to tracer/meter creation.
func ServerDurationHistogram ¶
func ServerDurationHistogram(meter metric.Meter) (metric.Float64Histogram, error)
func ServerErrorsCountCounter ¶
func ServerErrorsCountCounter(meter metric.Meter) (metric.Int64Counter, error)
func ServerRequestCountCounter ¶
func ServerRequestCountCounter(meter metric.Meter) (metric.Int64Counter, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.