Documentation
¶
Overview ¶
Package httpconv provides types and functionality for OpenTelemetry semantic conventions in the "azure" namespace.
Index ¶
- type CosmosDBClientActiveInstanceCount
- func (m CosmosDBClientActiveInstanceCount) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (CosmosDBClientActiveInstanceCount) AttrServerAddress(val string) attribute.KeyValue
- func (CosmosDBClientActiveInstanceCount) AttrServerPort(val int) attribute.KeyValue
- func (CosmosDBClientActiveInstanceCount) Description() string
- func (m CosmosDBClientActiveInstanceCount) Inst() metric.Int64UpDownCounter
- func (CosmosDBClientActiveInstanceCount) Name() string
- func (CosmosDBClientActiveInstanceCount) Unit() string
- type CosmosDBClientOperationRequestCharge
- func (CosmosDBClientOperationRequestCharge) AttrCosmosDBConsistencyLevel(val CosmosDBConsistencyLevelAttr) attribute.KeyValue
- func (CosmosDBClientOperationRequestCharge) AttrCosmosDBOperationContactedRegions(val ...string) attribute.KeyValue
- func (CosmosDBClientOperationRequestCharge) AttrCosmosDBResponseSubStatusCode(val int) attribute.KeyValue
- func (CosmosDBClientOperationRequestCharge) AttrDBCollectionName(val string) attribute.KeyValue
- func (CosmosDBClientOperationRequestCharge) AttrDBNamespace(val string) attribute.KeyValue
- func (CosmosDBClientOperationRequestCharge) AttrDBResponseStatusCode(val string) attribute.KeyValue
- func (CosmosDBClientOperationRequestCharge) AttrErrorType(val ErrorTypeAttr) attribute.KeyValue
- func (CosmosDBClientOperationRequestCharge) AttrServerAddress(val string) attribute.KeyValue
- func (CosmosDBClientOperationRequestCharge) AttrServerPort(val int) attribute.KeyValue
- func (CosmosDBClientOperationRequestCharge) Description() string
- func (m CosmosDBClientOperationRequestCharge) Inst() metric.Int64Histogram
- func (CosmosDBClientOperationRequestCharge) Name() string
- func (m CosmosDBClientOperationRequestCharge) Record(ctx context.Context, val int64, dbOperationName string, ...)
- func (CosmosDBClientOperationRequestCharge) Unit() string
- type CosmosDBConsistencyLevelAttr
- type ErrorTypeAttr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type 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.
func NewCosmosDBClientActiveInstanceCount ¶
func NewCosmosDBClientActiveInstanceCount( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (CosmosDBClientActiveInstanceCount, error)
NewCosmosDBClientActiveInstanceCount returns a new CosmosDBClientActiveInstanceCount instrument.
func (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.
func (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.
func (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.
func (CosmosDBClientActiveInstanceCount) Description ¶
func (CosmosDBClientActiveInstanceCount) Description() string
Description returns the semantic convention description of the instrument
func (CosmosDBClientActiveInstanceCount) Inst ¶
func (m CosmosDBClientActiveInstanceCount) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (CosmosDBClientActiveInstanceCount) Name ¶
func (CosmosDBClientActiveInstanceCount) Name() string
Name returns the semantic convention name of the instrument.
func (CosmosDBClientActiveInstanceCount) Unit ¶
func (CosmosDBClientActiveInstanceCount) Unit() string
Unit returns the semantic convention unit of the instrument
type 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.
func NewCosmosDBClientOperationRequestCharge ¶
func NewCosmosDBClientOperationRequestCharge( m metric.Meter, opt ...metric.Int64HistogramOption, ) (CosmosDBClientOperationRequestCharge, error)
NewCosmosDBClientOperationRequestCharge returns a new CosmosDBClientOperationRequestCharge instrument.
func (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.
func (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.
func (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.
func (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.
func (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.
func (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.
func (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.
func (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.
func (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.
func (CosmosDBClientOperationRequestCharge) Description ¶
func (CosmosDBClientOperationRequestCharge) Description() string
Description returns the semantic convention description of the instrument
func (CosmosDBClientOperationRequestCharge) Inst ¶
func (m CosmosDBClientOperationRequestCharge) Inst() metric.Int64Histogram
Inst returns the underlying metric instrument.
func (CosmosDBClientOperationRequestCharge) Name ¶
func (CosmosDBClientOperationRequestCharge) Name() string
Name returns the semantic convention name of the instrument.
func (CosmosDBClientOperationRequestCharge) Record ¶
func (m CosmosDBClientOperationRequestCharge) Record( ctx context.Context, val int64, dbOperationName string, attrs ...attribute.KeyValue, )
Record records val to the current distribution.
The dbOperationName is the the name of the operation or command being executed.
All additional attrs passed are included in the recorded value.
func (CosmosDBClientOperationRequestCharge) Unit ¶
func (CosmosDBClientOperationRequestCharge) Unit() string
Unit returns the semantic convention unit of the instrument
type 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.
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" )
type 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.
var ( // ErrorTypeOther is a fallback error value to be used when the instrumentation // doesn't define a custom value. ErrorTypeOther ErrorTypeAttr = "_OTHER" )