otelogen

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 2 Imported by: 139

Documentation

Overview

Package otelogen provides OpenTelemetry tracing for ogen.

Index

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/ogen-go/ogen"

Name of instrumentation.

Variables

This section is empty.

Functions

func ClientDurationHistogram added in v1.1.0

func ClientDurationHistogram(meter metric.Meter) (metric.Float64Histogram, error)

func ClientErrorsCountCounter added in v1.1.0

func ClientErrorsCountCounter(meter metric.Meter) (metric.Int64Counter, error)

func ClientRequestCountCounter added in v1.1.0

func ClientRequestCountCounter(meter metric.Meter) (metric.Int64Counter, error)

func OperationID

func OperationID(v string) attribute.KeyValue

OperationID attribute.

func SemVersion

func SemVersion() string

SemVersion is the semantic version to be supplied to tracer/meter creation.

func ServerDurationHistogram added in v1.1.0

func ServerDurationHistogram(meter metric.Meter) (metric.Float64Histogram, error)

func ServerErrorsCountCounter added in v1.1.0

func ServerErrorsCountCounter(meter metric.Meter) (metric.Int64Counter, error)

func ServerRequestCountCounter added in v1.1.0

func ServerRequestCountCounter(meter metric.Meter) (metric.Int64Counter, error)

func Version

func Version() string

Version is the current release version of the ogen instrumentation.

func WebhookName added in v0.53.0

func WebhookName(v string) attribute.KeyValue

WebhookName attribute.

Types

This section is empty.

Jump to

Keyboard shortcuts

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