Search and commands

↑ ↓ to select · Enter to open · Esc to close

Type to search packages.

azureconv

v1.47.0
go.opentelemetry.io/otel/semconv/v1.32.0/azureconv

Documentation

pkg.go.dev ↗

Table of contents

↓ to select · Enter to jump· Shift+Enter for source

35 matches

Top ↑

Package azureconv provides types and functionality for OpenTelemetry semantic conventions in the "azure" namespace.

Types

CosmosDBClientActiveInstanceCount

type CosmosDBClientActiveInstanceCount struct {
	metric.Int64UpDownCounter
}

CosmosDBClientActiveInstanceCount is an instrument used to record metric values conforming to the "azure.cosmosdb.client.active_instance.count" semantic conventions. It represents the number of active client instances.

NewCosmosDBClientActiveInstanceCount

func NewCosmosDBClientActiveInstanceCount(
	m metric.Meter,
	opt ...metric.Int64UpDownCounterOption,
) (CosmosDBClientActiveInstanceCount, error)

NewCosmosDBClientActiveInstanceCount returns a new CosmosDBClientActiveInstanceCount instrument.

CosmosDBClientActiveInstanceCount.Add

func (m CosmosDBClientActiveInstanceCount) Add(
	ctx context.Context,
	incr int64,
	attrs ...attribute.KeyValue,
)

Add adds incr to the existing count.

All additional attrs passed are included in the recorded value.

CosmosDBClientActiveInstanceCount.AttrServerAddress

func (CosmosDBClientActiveInstanceCount) AttrServerAddress(val string) attribute.KeyValue

AttrServerAddress returns an optional attribute for the "server.address" semantic convention. It represents the name of the database host.

CosmosDBClientActiveInstanceCount.AttrServerPort

func (CosmosDBClientActiveInstanceCount) AttrServerPort(val int) attribute.KeyValue

AttrServerPort returns an optional attribute for the "server.port" semantic convention. It represents the server port number.

CosmosDBClientActiveInstanceCount.Description

func (CosmosDBClientActiveInstanceCount) Description() string

Description returns the semantic convention description of the instrument

CosmosDBClientActiveInstanceCount.Inst

func (m CosmosDBClientActiveInstanceCount) Inst() metric.Int64UpDownCounter

Inst returns the underlying metric instrument.

CosmosDBClientActiveInstanceCount.Name

func (CosmosDBClientActiveInstanceCount) Name() string

Name returns the semantic convention name of the instrument.

CosmosDBClientActiveInstanceCount.Unit

func (CosmosDBClientActiveInstanceCount) Unit() string

Unit returns the semantic convention unit of the instrument

CosmosDBClientOperationRequestCharge

type CosmosDBClientOperationRequestCharge struct {
	metric.Int64Histogram
}

CosmosDBClientOperationRequestCharge is an instrument used to record metric values conforming to the "azure.cosmosdb.client.operation.request_charge" semantic conventions. It represents the Request units consumed by the operation.

NewCosmosDBClientOperationRequestCharge

func NewCosmosDBClientOperationRequestCharge(
	m metric.Meter,
	opt ...metric.Int64HistogramOption,
) (CosmosDBClientOperationRequestCharge, error)

NewCosmosDBClientOperationRequestCharge returns a new CosmosDBClientOperationRequestCharge instrument.

CosmosDBClientOperationRequestCharge.AttrCosmosDBConsistencyLevel

func (CosmosDBClientOperationRequestCharge) AttrCosmosDBConsistencyLevel(val CosmosDBConsistencyLevelAttr) attribute.KeyValue

AttrCosmosDBConsistencyLevel returns an optional attribute for the "azure.cosmosdb.consistency.level" semantic convention. It represents the account or request consistency level.

CosmosDBClientOperationRequestCharge.AttrCosmosDBOperationContactedRegions

func (CosmosDBClientOperationRequestCharge) AttrCosmosDBOperationContactedRegions(val ...string) attribute.KeyValue

AttrCosmosDBOperationContactedRegions returns an optional attribute for the "azure.cosmosdb.operation.contacted_regions" semantic convention. It represents the list of regions contacted during operation in the order that they were contacted. If there is more than one region listed, it indicates that the operation was performed on multiple regions i.e. cross-regional call.

CosmosDBClientOperationRequestCharge.AttrCosmosDBResponseSubStatusCode

func (CosmosDBClientOperationRequestCharge) AttrCosmosDBResponseSubStatusCode(val int) attribute.KeyValue

AttrCosmosDBResponseSubStatusCode returns an optional attribute for the "azure.cosmosdb.response.sub_status_code" semantic convention. It represents the cosmos DB sub status code.

CosmosDBClientOperationRequestCharge.AttrDBCollectionName

func (CosmosDBClientOperationRequestCharge) AttrDBCollectionName(val string) attribute.KeyValue

AttrDBCollectionName returns an optional attribute for the "db.collection.name" semantic convention. It represents the cosmos DB container name.

CosmosDBClientOperationRequestCharge.AttrDBNamespace

func (CosmosDBClientOperationRequestCharge) AttrDBNamespace(val string) attribute.KeyValue

AttrDBNamespace returns an optional attribute for the "db.namespace" semantic convention. It represents the name of the database, fully qualified within the server address and port.

CosmosDBClientOperationRequestCharge.AttrDBOperationName

func (CosmosDBClientOperationRequestCharge) AttrDBOperationName(val string) attribute.KeyValue

AttrDBOperationName returns an optional attribute for the "db.operation.name" semantic convention. It represents the name of the operation or command being executed.

CosmosDBClientOperationRequestCharge.AttrDBResponseStatusCode

func (CosmosDBClientOperationRequestCharge) AttrDBResponseStatusCode(val string) attribute.KeyValue

AttrDBResponseStatusCode returns an optional attribute for the "db.response.status_code" semantic convention. It represents the database response status code.

CosmosDBClientOperationRequestCharge.AttrErrorType

func (CosmosDBClientOperationRequestCharge) AttrErrorType(val ErrorTypeAttr) attribute.KeyValue

AttrErrorType returns an optional attribute for the "error.type" semantic convention. It represents the describes a class of error the operation ended with.

CosmosDBClientOperationRequestCharge.AttrServerAddress

func (CosmosDBClientOperationRequestCharge) AttrServerAddress(val string) attribute.KeyValue

AttrServerAddress returns an optional attribute for the "server.address" semantic convention. It represents the name of the database host.

CosmosDBClientOperationRequestCharge.AttrServerPort

func (CosmosDBClientOperationRequestCharge) AttrServerPort(val int) attribute.KeyValue

AttrServerPort returns an optional attribute for the "server.port" semantic convention. It represents the server port number.

CosmosDBClientOperationRequestCharge.Description

func (CosmosDBClientOperationRequestCharge) Description() string

Description returns the semantic convention description of the instrument

CosmosDBClientOperationRequestCharge.Inst

func (m CosmosDBClientOperationRequestCharge) Inst() metric.Int64Histogram

Inst returns the underlying metric instrument.

CosmosDBClientOperationRequestCharge.Name

func (CosmosDBClientOperationRequestCharge) Name() string

Name returns the semantic convention name of the instrument.

CosmosDBClientOperationRequestCharge.Record

func (m CosmosDBClientOperationRequestCharge) Record(
	ctx context.Context,
	val int64,
	attrs ...attribute.KeyValue,
)

Record records val to the current distribution.

All additional attrs passed are included in the recorded value.

CosmosDBClientOperationRequestCharge.Unit

func (CosmosDBClientOperationRequestCharge) Unit() string

Unit returns the semantic convention unit of the instrument

CosmosDBConsistencyLevelAttr

type CosmosDBConsistencyLevelAttr string

CosmosDBConsistencyLevelAttr is an attribute conforming to the azure.cosmosdb.consistency.level semantic conventions. It represents the account or request consistency level.

CosmosDBConsistencyLevelStrong (5 declarations)

var (
	// CosmosDBConsistencyLevelStrong is the none.
	CosmosDBConsistencyLevelStrong CosmosDBConsistencyLevelAttr = "Strong"
	// CosmosDBConsistencyLevelBoundedStaleness is the none.
	CosmosDBConsistencyLevelBoundedStaleness CosmosDBConsistencyLevelAttr = "BoundedStaleness"
	// CosmosDBConsistencyLevelSession is the none.
	CosmosDBConsistencyLevelSession CosmosDBConsistencyLevelAttr = "Session"
	// CosmosDBConsistencyLevelEventual is the none.
	CosmosDBConsistencyLevelEventual CosmosDBConsistencyLevelAttr = "Eventual"
	// CosmosDBConsistencyLevelConsistentPrefix is the none.
	CosmosDBConsistencyLevelConsistentPrefix CosmosDBConsistencyLevelAttr = "ConsistentPrefix"
)

ErrorTypeAttr

type ErrorTypeAttr string

ErrorTypeAttr is an attribute conforming to the error.type semantic conventions. It represents the describes a class of error the operation ended with.

ErrorTypeOther

var ErrorTypeOther ErrorTypeAttr = "_OTHER"

ErrorTypeOther is a fallback error value to be used when the instrumentation doesn't define a custom value.

Dependency graph