otelconv
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package otelconv provides types and functionality for OpenTelemetry semanticconventions in the "otel" namespace.
Index¶
- type ComponentTypeAttr
- type ErrorTypeAttr
- type RPCGRPCStatusCodeAttr
- type SDKExporterLogExported
- func (m SDKExporterLogExported) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m SDKExporterLogExported) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (SDKExporterLogExported) AttrComponentName(val string) attribute.KeyValue
- func (SDKExporterLogExported) AttrComponentType(val ComponentTypeAttr) attribute.KeyValue
- func (SDKExporterLogExported) AttrErrorType(val ErrorTypeAttr) attribute.KeyValue
- func (SDKExporterLogExported) AttrServerAddress(val string) attribute.KeyValue
- func (SDKExporterLogExported) AttrServerPort(val int) attribute.KeyValue
- func (SDKExporterLogExported) Description() string
- func (m SDKExporterLogExported) Inst() metric.Int64Counter
- func (SDKExporterLogExported) Name() string
- func (SDKExporterLogExported) Unit() string
- type SDKExporterLogInflight
- func (m SDKExporterLogInflight) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m SDKExporterLogInflight) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (SDKExporterLogInflight) AttrComponentName(val string) attribute.KeyValue
- func (SDKExporterLogInflight) AttrComponentType(val ComponentTypeAttr) attribute.KeyValue
- func (SDKExporterLogInflight) AttrServerAddress(val string) attribute.KeyValue
- func (SDKExporterLogInflight) AttrServerPort(val int) attribute.KeyValue
- func (SDKExporterLogInflight) Description() string
- func (m SDKExporterLogInflight) Inst() metric.Int64UpDownCounter
- func (SDKExporterLogInflight) Name() string
- func (SDKExporterLogInflight) Unit() string
- type SDKExporterMetricDataPointExported
- func (m SDKExporterMetricDataPointExported) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m SDKExporterMetricDataPointExported) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (SDKExporterMetricDataPointExported) AttrComponentName(val string) attribute.KeyValue
- func (SDKExporterMetricDataPointExported) AttrComponentType(val ComponentTypeAttr) attribute.KeyValue
- func (SDKExporterMetricDataPointExported) AttrErrorType(val ErrorTypeAttr) attribute.KeyValue
- func (SDKExporterMetricDataPointExported) AttrServerAddress(val string) attribute.KeyValue
- func (SDKExporterMetricDataPointExported) AttrServerPort(val int) attribute.KeyValue
- func (SDKExporterMetricDataPointExported) Description() string
- func (m SDKExporterMetricDataPointExported) Inst() metric.Int64Counter
- func (SDKExporterMetricDataPointExported) Name() string
- func (SDKExporterMetricDataPointExported) Unit() string
- type SDKExporterMetricDataPointInflight
- func (m SDKExporterMetricDataPointInflight) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m SDKExporterMetricDataPointInflight) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (SDKExporterMetricDataPointInflight) AttrComponentName(val string) attribute.KeyValue
- func (SDKExporterMetricDataPointInflight) AttrComponentType(val ComponentTypeAttr) attribute.KeyValue
- func (SDKExporterMetricDataPointInflight) AttrServerAddress(val string) attribute.KeyValue
- func (SDKExporterMetricDataPointInflight) AttrServerPort(val int) attribute.KeyValue
- func (SDKExporterMetricDataPointInflight) Description() string
- func (m SDKExporterMetricDataPointInflight) Inst() metric.Int64UpDownCounter
- func (SDKExporterMetricDataPointInflight) Name() string
- func (SDKExporterMetricDataPointInflight) Unit() string
- type SDKExporterOperationDuration
- func (SDKExporterOperationDuration) AttrComponentName(val string) attribute.KeyValue
- func (SDKExporterOperationDuration) AttrComponentType(val ComponentTypeAttr) attribute.KeyValue
- func (SDKExporterOperationDuration) AttrErrorType(val ErrorTypeAttr) attribute.KeyValue
- func (SDKExporterOperationDuration) AttrHTTPResponseStatusCode(val int) attribute.KeyValue
- func (SDKExporterOperationDuration) AttrRPCGRPCStatusCode(val RPCGRPCStatusCodeAttr) attribute.KeyValue
- func (SDKExporterOperationDuration) AttrServerAddress(val string) attribute.KeyValue
- func (SDKExporterOperationDuration) AttrServerPort(val int) attribute.KeyValue
- func (SDKExporterOperationDuration) Description() string
- func (m SDKExporterOperationDuration) Inst() metric.Float64Histogram
- func (SDKExporterOperationDuration) Name() string
- func (m SDKExporterOperationDuration) Record(ctx context.Context, val float64, attrs ...attribute.KeyValue)
- func (m SDKExporterOperationDuration) RecordSet(ctx context.Context, val float64, set attribute.Set)
- func (SDKExporterOperationDuration) Unit() string
- type SDKExporterSpanExported
- func (m SDKExporterSpanExported) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m SDKExporterSpanExported) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (SDKExporterSpanExported) AttrComponentName(val string) attribute.KeyValue
- func (SDKExporterSpanExported) AttrComponentType(val ComponentTypeAttr) attribute.KeyValue
- func (SDKExporterSpanExported) AttrErrorType(val ErrorTypeAttr) attribute.KeyValue
- func (SDKExporterSpanExported) AttrServerAddress(val string) attribute.KeyValue
- func (SDKExporterSpanExported) AttrServerPort(val int) attribute.KeyValue
- func (SDKExporterSpanExported) Description() string
- func (m SDKExporterSpanExported) Inst() metric.Int64Counter
- func (SDKExporterSpanExported) Name() string
- func (SDKExporterSpanExported) Unit() string
- type SDKExporterSpanInflight
- func (m SDKExporterSpanInflight) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m SDKExporterSpanInflight) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (SDKExporterSpanInflight) AttrComponentName(val string) attribute.KeyValue
- func (SDKExporterSpanInflight) AttrComponentType(val ComponentTypeAttr) attribute.KeyValue
- func (SDKExporterSpanInflight) AttrServerAddress(val string) attribute.KeyValue
- func (SDKExporterSpanInflight) AttrServerPort(val int) attribute.KeyValue
- func (SDKExporterSpanInflight) Description() string
- func (m SDKExporterSpanInflight) Inst() metric.Int64UpDownCounter
- func (SDKExporterSpanInflight) Name() string
- func (SDKExporterSpanInflight) Unit() string
- type SDKLogCreated
- func (m SDKLogCreated) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m SDKLogCreated) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (SDKLogCreated) Description() string
- func (m SDKLogCreated) Inst() metric.Int64Counter
- func (SDKLogCreated) Name() string
- func (SDKLogCreated) Unit() string
- type SDKMetricReaderCollectionDuration
- func (SDKMetricReaderCollectionDuration) AttrComponentName(val string) attribute.KeyValue
- func (SDKMetricReaderCollectionDuration) AttrComponentType(val ComponentTypeAttr) attribute.KeyValue
- func (SDKMetricReaderCollectionDuration) AttrErrorType(val ErrorTypeAttr) attribute.KeyValue
- func (SDKMetricReaderCollectionDuration) Description() string
- func (m SDKMetricReaderCollectionDuration) Inst() metric.Float64Histogram
- func (SDKMetricReaderCollectionDuration) Name() string
- func (m SDKMetricReaderCollectionDuration) Record(ctx context.Context, val float64, attrs ...attribute.KeyValue)
- func (m SDKMetricReaderCollectionDuration) RecordSet(ctx context.Context, val float64, set attribute.Set)
- func (SDKMetricReaderCollectionDuration) Unit() string
- type SDKProcessorLogProcessed
- func (m SDKProcessorLogProcessed) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m SDKProcessorLogProcessed) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (SDKProcessorLogProcessed) AttrComponentName(val string) attribute.KeyValue
- func (SDKProcessorLogProcessed) AttrComponentType(val ComponentTypeAttr) attribute.KeyValue
- func (SDKProcessorLogProcessed) AttrErrorType(val ErrorTypeAttr) attribute.KeyValue
- func (SDKProcessorLogProcessed) Description() string
- func (m SDKProcessorLogProcessed) Inst() metric.Int64Counter
- func (SDKProcessorLogProcessed) Name() string
- func (SDKProcessorLogProcessed) Unit() string
- type SDKProcessorLogQueueCapacity
- func (SDKProcessorLogQueueCapacity) AttrComponentName(val string) attribute.KeyValue
- func (SDKProcessorLogQueueCapacity) AttrComponentType(val ComponentTypeAttr) attribute.KeyValue
- func (SDKProcessorLogQueueCapacity) Description() string
- func (m SDKProcessorLogQueueCapacity) Inst() metric.Int64ObservableUpDownCounter
- func (SDKProcessorLogQueueCapacity) Name() string
- func (SDKProcessorLogQueueCapacity) Unit() string
- type SDKProcessorLogQueueSize
- func (SDKProcessorLogQueueSize) AttrComponentName(val string) attribute.KeyValue
- func (SDKProcessorLogQueueSize) AttrComponentType(val ComponentTypeAttr) attribute.KeyValue
- func (SDKProcessorLogQueueSize) Description() string
- func (m SDKProcessorLogQueueSize) Inst() metric.Int64ObservableUpDownCounter
- func (SDKProcessorLogQueueSize) Name() string
- func (SDKProcessorLogQueueSize) Unit() string
- type SDKProcessorSpanProcessed
- func (m SDKProcessorSpanProcessed) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m SDKProcessorSpanProcessed) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (SDKProcessorSpanProcessed) AttrComponentName(val string) attribute.KeyValue
- func (SDKProcessorSpanProcessed) AttrComponentType(val ComponentTypeAttr) attribute.KeyValue
- func (SDKProcessorSpanProcessed) AttrErrorType(val ErrorTypeAttr) attribute.KeyValue
- func (SDKProcessorSpanProcessed) Description() string
- func (m SDKProcessorSpanProcessed) Inst() metric.Int64Counter
- func (SDKProcessorSpanProcessed) Name() string
- func (SDKProcessorSpanProcessed) Unit() string
- type SDKProcessorSpanQueueCapacity
- func (SDKProcessorSpanQueueCapacity) AttrComponentName(val string) attribute.KeyValue
- func (SDKProcessorSpanQueueCapacity) AttrComponentType(val ComponentTypeAttr) attribute.KeyValue
- func (SDKProcessorSpanQueueCapacity) Description() string
- func (m SDKProcessorSpanQueueCapacity) Inst() metric.Int64ObservableUpDownCounter
- func (SDKProcessorSpanQueueCapacity) Name() string
- func (SDKProcessorSpanQueueCapacity) Unit() string
- type SDKProcessorSpanQueueSize
- func (SDKProcessorSpanQueueSize) AttrComponentName(val string) attribute.KeyValue
- func (SDKProcessorSpanQueueSize) AttrComponentType(val ComponentTypeAttr) attribute.KeyValue
- func (SDKProcessorSpanQueueSize) Description() string
- func (m SDKProcessorSpanQueueSize) Inst() metric.Int64ObservableUpDownCounter
- func (SDKProcessorSpanQueueSize) Name() string
- func (SDKProcessorSpanQueueSize) Unit() string
- type SDKSpanLive
- func (m SDKSpanLive) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m SDKSpanLive) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (SDKSpanLive) AttrSpanSamplingResult(val SpanSamplingResultAttr) attribute.KeyValue
- func (SDKSpanLive) Description() string
- func (m SDKSpanLive) Inst() metric.Int64UpDownCounter
- func (SDKSpanLive) Name() string
- func (SDKSpanLive) Unit() string
- type SDKSpanStarted
- func (m SDKSpanStarted) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m SDKSpanStarted) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (SDKSpanStarted) AttrSpanParentOrigin(val SpanParentOriginAttr) attribute.KeyValue
- func (SDKSpanStarted) AttrSpanSamplingResult(val SpanSamplingResultAttr) attribute.KeyValue
- func (SDKSpanStarted) Description() string
- func (m SDKSpanStarted) Inst() metric.Int64Counter
- func (SDKSpanStarted) Name() string
- func (SDKSpanStarted) Unit() string
- type SpanParentOriginAttr
- type SpanSamplingResultAttr
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeComponentTypeAttr¶
type ComponentTypeAttrstring
ComponentTypeAttr is an attribute conforming to the otel.component.typesemantic conventions. It represents a name identifying the type of theOpenTelemetry component.
var (// ComponentTypeBatchingSpanProcessor is the builtin SDK batching span// processor.ComponentTypeBatchingSpanProcessorComponentTypeAttr = "batching_span_processor"// ComponentTypeSimpleSpanProcessor is the builtin SDK simple span processor.ComponentTypeSimpleSpanProcessorComponentTypeAttr = "simple_span_processor"// ComponentTypeBatchingLogProcessor is the builtin SDK batching log record// processor.ComponentTypeBatchingLogProcessorComponentTypeAttr = "batching_log_processor"// ComponentTypeSimpleLogProcessor is the builtin SDK simple log record// processor.ComponentTypeSimpleLogProcessorComponentTypeAttr = "simple_log_processor"// ComponentTypeOtlpGRPCSpanExporter is the OTLP span exporter over gRPC with// protobuf serialization.ComponentTypeOtlpGRPCSpanExporterComponentTypeAttr = "otlp_grpc_span_exporter"// ComponentTypeOtlpHTTPSpanExporter is the OTLP span exporter over HTTP with// protobuf serialization.ComponentTypeOtlpHTTPSpanExporterComponentTypeAttr = "otlp_http_span_exporter"// ComponentTypeOtlpHTTPJSONSpanExporter is the OTLP span exporter over HTTP// with JSON serialization.ComponentTypeOtlpHTTPJSONSpanExporterComponentTypeAttr = "otlp_http_json_span_exporter"// ComponentTypeZipkinHTTPSpanExporter is the zipkin span exporter over HTTP.ComponentTypeZipkinHTTPSpanExporterComponentTypeAttr = "zipkin_http_span_exporter"// ComponentTypeOtlpGRPCLogExporter is the OTLP log record exporter over gRPC// with protobuf serialization.ComponentTypeOtlpGRPCLogExporterComponentTypeAttr = "otlp_grpc_log_exporter"// ComponentTypeOtlpHTTPLogExporter is the OTLP log record exporter over HTTP// with protobuf serialization.ComponentTypeOtlpHTTPLogExporterComponentTypeAttr = "otlp_http_log_exporter"// ComponentTypeOtlpHTTPJSONLogExporter is the OTLP log record exporter over// HTTP with JSON serialization.ComponentTypeOtlpHTTPJSONLogExporterComponentTypeAttr = "otlp_http_json_log_exporter"// ComponentTypePeriodicMetricReader is the builtin SDK periodically exporting// metric reader.ComponentTypePeriodicMetricReaderComponentTypeAttr = "periodic_metric_reader"// ComponentTypeOtlpGRPCMetricExporter is the OTLP metric exporter over gRPC// with protobuf serialization.ComponentTypeOtlpGRPCMetricExporterComponentTypeAttr = "otlp_grpc_metric_exporter"// ComponentTypeOtlpHTTPMetricExporter is the OTLP metric exporter over HTTP// with protobuf serialization.ComponentTypeOtlpHTTPMetricExporterComponentTypeAttr = "otlp_http_metric_exporter"// ComponentTypeOtlpHTTPJSONMetricExporter is the OTLP metric exporter over HTTP// with JSON serialization.ComponentTypeOtlpHTTPJSONMetricExporterComponentTypeAttr = "otlp_http_json_metric_exporter"// ComponentTypePrometheusHTTPTextMetricExporter is the prometheus metric// exporter over HTTP with the default text-based format.ComponentTypePrometheusHTTPTextMetricExporterComponentTypeAttr = "prometheus_http_text_metric_exporter")
typeErrorTypeAttr¶
type ErrorTypeAttrstring
ErrorTypeAttr is an attribute conforming to the error.type semanticconventions. It represents the describes a class of error the operation endedwith.
var (// ErrorTypeOther is a fallback error value to be used when the instrumentation// doesn't define a custom value.ErrorTypeOtherErrorTypeAttr = "_OTHER")
typeRPCGRPCStatusCodeAttr¶
type RPCGRPCStatusCodeAttrint64
RPCGRPCStatusCodeAttr is an attribute conforming to the rpc.grpc.status_codesemantic conventions. It represents the gRPC status code of the last gRPCrequests performed in scope of this export call.
var (// RPCGRPCStatusCodeOk is the OK.RPCGRPCStatusCodeOkRPCGRPCStatusCodeAttr = 0// RPCGRPCStatusCodeCancelled is the CANCELLED.RPCGRPCStatusCodeCancelledRPCGRPCStatusCodeAttr = 1// RPCGRPCStatusCodeUnknown is the UNKNOWN.RPCGRPCStatusCodeUnknownRPCGRPCStatusCodeAttr = 2// RPCGRPCStatusCodeInvalidArgument is the INVALID_ARGUMENT.RPCGRPCStatusCodeInvalidArgumentRPCGRPCStatusCodeAttr = 3// RPCGRPCStatusCodeDeadlineExceeded is the DEADLINE_EXCEEDED.RPCGRPCStatusCodeDeadlineExceededRPCGRPCStatusCodeAttr = 4// RPCGRPCStatusCodeNotFound is the NOT_FOUND.RPCGRPCStatusCodeNotFoundRPCGRPCStatusCodeAttr = 5// RPCGRPCStatusCodeAlreadyExists is the ALREADY_EXISTS.RPCGRPCStatusCodeAlreadyExistsRPCGRPCStatusCodeAttr = 6// RPCGRPCStatusCodePermissionDenied is the PERMISSION_DENIED.RPCGRPCStatusCodePermissionDeniedRPCGRPCStatusCodeAttr = 7// RPCGRPCStatusCodeResourceExhausted is the RESOURCE_EXHAUSTED.RPCGRPCStatusCodeResourceExhaustedRPCGRPCStatusCodeAttr = 8// RPCGRPCStatusCodeFailedPrecondition is the FAILED_PRECONDITION.RPCGRPCStatusCodeFailedPreconditionRPCGRPCStatusCodeAttr = 9// RPCGRPCStatusCodeAborted is the ABORTED.RPCGRPCStatusCodeAbortedRPCGRPCStatusCodeAttr = 10// RPCGRPCStatusCodeOutOfRange is the OUT_OF_RANGE.RPCGRPCStatusCodeOutOfRangeRPCGRPCStatusCodeAttr = 11// RPCGRPCStatusCodeUnimplemented is the UNIMPLEMENTED.RPCGRPCStatusCodeUnimplementedRPCGRPCStatusCodeAttr = 12// RPCGRPCStatusCodeInternal is the INTERNAL.RPCGRPCStatusCodeInternalRPCGRPCStatusCodeAttr = 13// RPCGRPCStatusCodeUnavailable is the UNAVAILABLE.RPCGRPCStatusCodeUnavailableRPCGRPCStatusCodeAttr = 14// RPCGRPCStatusCodeDataLoss is the DATA_LOSS.RPCGRPCStatusCodeDataLossRPCGRPCStatusCodeAttr = 15// RPCGRPCStatusCodeUnauthenticated is the UNAUTHENTICATED.RPCGRPCStatusCodeUnauthenticatedRPCGRPCStatusCodeAttr = 16)
typeSDKExporterLogExported¶
type SDKExporterLogExported struct {metric.Int64Counter}SDKExporterLogExported is an instrument used to record metric valuesconforming to the "otel.sdk.exporter.log.exported" semantic conventions. Itrepresents the number of log records for which the export has finished, eithersuccessful or failed.
funcNewSDKExporterLogExported¶
func NewSDKExporterLogExported(mmetric.Meter,opt ...metric.Int64CounterOption,) (SDKExporterLogExported,error)
NewSDKExporterLogExported returns a new SDKExporterLogExported instrument.
func (SDKExporterLogExported)Add¶
Add adds incr to the existing count for attrs.
All additional attrs passed are included in the recorded value.
For successful exports, `error.type` MUST NOT be set. For failed exports,`error.type` MUST contain the failure cause.For exporters with partial success semantics (e.g. OTLP with`rejected_log_records`), rejected log records MUST count as failed and onlynon-rejected log records count as success.If no rejection reason is available, `rejected` SHOULD be used as value for`error.type`.
func (SDKExporterLogExported)AddSet¶
AddSet adds incr to the existing count for set.
For successful exports, `error.type` MUST NOT be set. For failed exports,`error.type` MUST contain the failure cause.For exporters with partial success semantics (e.g. OTLP with`rejected_log_records`), rejected log records MUST count as failed and onlynon-rejected log records count as success.If no rejection reason is available, `rejected` SHOULD be used as value for`error.type`.
func (SDKExporterLogExported)AttrComponentName¶
func (SDKExporterLogExported) AttrComponentName(valstring)attribute.KeyValue
AttrComponentName returns an optional attribute for the "otel.component.name"semantic convention. It represents a name uniquely identifying the instance ofthe OpenTelemetry component within its containing SDK instance.
func (SDKExporterLogExported)AttrComponentType¶
func (SDKExporterLogExported) AttrComponentType(valComponentTypeAttr)attribute.KeyValue
AttrComponentType returns an optional attribute for the "otel.component.type"semantic convention. It represents a name identifying the type of theOpenTelemetry component.
func (SDKExporterLogExported)AttrErrorType¶
func (SDKExporterLogExported) AttrErrorType(valErrorTypeAttr)attribute.KeyValue
AttrErrorType returns an optional attribute for the "error.type" semanticconvention. It represents the describes a class of error the operation endedwith.
func (SDKExporterLogExported)AttrServerAddress¶
func (SDKExporterLogExported) AttrServerAddress(valstring)attribute.KeyValue
AttrServerAddress returns an optional attribute for the "server.address"semantic convention. It represents the server domain name if available withoutreverse DNS lookup; otherwise, IP address or Unix domain socket name.
func (SDKExporterLogExported)AttrServerPort¶
func (SDKExporterLogExported) AttrServerPort(valint)attribute.KeyValue
AttrServerPort returns an optional attribute for the "server.port" semanticconvention. It represents the server port number.
func (SDKExporterLogExported)Description¶
func (SDKExporterLogExported) Description()string
Description returns the semantic convention description of the instrument
func (SDKExporterLogExported)Inst¶
func (mSDKExporterLogExported) Inst()metric.Int64Counter
Inst returns the underlying metric instrument.
func (SDKExporterLogExported)Name¶
func (SDKExporterLogExported) Name()string
Name returns the semantic convention name of the instrument.
func (SDKExporterLogExported)Unit¶
func (SDKExporterLogExported) Unit()string
Unit returns the semantic convention unit of the instrument
typeSDKExporterLogInflight¶
type SDKExporterLogInflight struct {metric.Int64UpDownCounter}SDKExporterLogInflight is an instrument used to record metric valuesconforming to the "otel.sdk.exporter.log.inflight" semantic conventions. Itrepresents the number of log records which were passed to the exporter, butthat have not been exported yet (neither successful, nor failed).
funcNewSDKExporterLogInflight¶
func NewSDKExporterLogInflight(mmetric.Meter,opt ...metric.Int64UpDownCounterOption,) (SDKExporterLogInflight,error)
NewSDKExporterLogInflight returns a new SDKExporterLogInflight instrument.
func (SDKExporterLogInflight)Add¶
Add adds incr to the existing count for attrs.
All additional attrs passed are included in the recorded value.
For successful exports, `error.type` MUST NOT be set. For failed exports,`error.type` MUST contain the failure cause.
func (SDKExporterLogInflight)AddSet¶
AddSet adds incr to the existing count for set.
For successful exports, `error.type` MUST NOT be set. For failed exports,`error.type` MUST contain the failure cause.
func (SDKExporterLogInflight)AttrComponentName¶
func (SDKExporterLogInflight) AttrComponentName(valstring)attribute.KeyValue
AttrComponentName returns an optional attribute for the "otel.component.name"semantic convention. It represents a name uniquely identifying the instance ofthe OpenTelemetry component within its containing SDK instance.
func (SDKExporterLogInflight)AttrComponentType¶
func (SDKExporterLogInflight) AttrComponentType(valComponentTypeAttr)attribute.KeyValue
AttrComponentType returns an optional attribute for the "otel.component.type"semantic convention. It represents a name identifying the type of theOpenTelemetry component.
func (SDKExporterLogInflight)AttrServerAddress¶
func (SDKExporterLogInflight) AttrServerAddress(valstring)attribute.KeyValue
AttrServerAddress returns an optional attribute for the "server.address"semantic convention. It represents the server domain name if available withoutreverse DNS lookup; otherwise, IP address or Unix domain socket name.
func (SDKExporterLogInflight)AttrServerPort¶
func (SDKExporterLogInflight) AttrServerPort(valint)attribute.KeyValue
AttrServerPort returns an optional attribute for the "server.port" semanticconvention. It represents the server port number.
func (SDKExporterLogInflight)Description¶
func (SDKExporterLogInflight) Description()string
Description returns the semantic convention description of the instrument
func (SDKExporterLogInflight)Inst¶
func (mSDKExporterLogInflight) Inst()metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (SDKExporterLogInflight)Name¶
func (SDKExporterLogInflight) Name()string
Name returns the semantic convention name of the instrument.
func (SDKExporterLogInflight)Unit¶
func (SDKExporterLogInflight) Unit()string
Unit returns the semantic convention unit of the instrument
typeSDKExporterMetricDataPointExported¶
type SDKExporterMetricDataPointExported struct {metric.Int64Counter}SDKExporterMetricDataPointExported is an instrument used to record metricvalues conforming to the "otel.sdk.exporter.metric_data_point.exported"semantic conventions. It represents the number of metric data points for whichthe export has finished, either successful or failed.
funcNewSDKExporterMetricDataPointExported¶
func NewSDKExporterMetricDataPointExported(mmetric.Meter,opt ...metric.Int64CounterOption,) (SDKExporterMetricDataPointExported,error)
NewSDKExporterMetricDataPointExported returns a newSDKExporterMetricDataPointExported instrument.
func (SDKExporterMetricDataPointExported)Add¶
func (mSDKExporterMetricDataPointExported) Add(ctxcontext.Context,incrint64,attrs ...attribute.KeyValue,)
Add adds incr to the existing count for attrs.
All additional attrs passed are included in the recorded value.
For successful exports, `error.type` MUST NOT be set. For failed exports,`error.type` MUST contain the failure cause.For exporters with partial success semantics (e.g. OTLP with`rejected_data_points`), rejected data points MUST count as failed and onlynon-rejected data points count as success.If no rejection reason is available, `rejected` SHOULD be used as value for`error.type`.
func (SDKExporterMetricDataPointExported)AddSet¶
AddSet adds incr to the existing count for set.
For successful exports, `error.type` MUST NOT be set. For failed exports,`error.type` MUST contain the failure cause.For exporters with partial success semantics (e.g. OTLP with`rejected_data_points`), rejected data points MUST count as failed and onlynon-rejected data points count as success.If no rejection reason is available, `rejected` SHOULD be used as value for`error.type`.
func (SDKExporterMetricDataPointExported)AttrComponentName¶
func (SDKExporterMetricDataPointExported) AttrComponentName(valstring)attribute.KeyValue
AttrComponentName returns an optional attribute for the "otel.component.name"semantic convention. It represents a name uniquely identifying the instance ofthe OpenTelemetry component within its containing SDK instance.
func (SDKExporterMetricDataPointExported)AttrComponentType¶
func (SDKExporterMetricDataPointExported) AttrComponentType(valComponentTypeAttr)attribute.KeyValue
AttrComponentType returns an optional attribute for the "otel.component.type"semantic convention. It represents a name identifying the type of theOpenTelemetry component.
func (SDKExporterMetricDataPointExported)AttrErrorType¶
func (SDKExporterMetricDataPointExported) AttrErrorType(valErrorTypeAttr)attribute.KeyValue
AttrErrorType returns an optional attribute for the "error.type" semanticconvention. It represents the describes a class of error the operation endedwith.
func (SDKExporterMetricDataPointExported)AttrServerAddress¶
func (SDKExporterMetricDataPointExported) AttrServerAddress(valstring)attribute.KeyValue
AttrServerAddress returns an optional attribute for the "server.address"semantic convention. It represents the server domain name if available withoutreverse DNS lookup; otherwise, IP address or Unix domain socket name.
func (SDKExporterMetricDataPointExported)AttrServerPort¶
func (SDKExporterMetricDataPointExported) AttrServerPort(valint)attribute.KeyValue
AttrServerPort returns an optional attribute for the "server.port" semanticconvention. It represents the server port number.
func (SDKExporterMetricDataPointExported)Description¶
func (SDKExporterMetricDataPointExported) Description()string
Description returns the semantic convention description of the instrument
func (SDKExporterMetricDataPointExported)Inst¶
func (mSDKExporterMetricDataPointExported) Inst()metric.Int64Counter
Inst returns the underlying metric instrument.
func (SDKExporterMetricDataPointExported)Name¶
func (SDKExporterMetricDataPointExported) Name()string
Name returns the semantic convention name of the instrument.
func (SDKExporterMetricDataPointExported)Unit¶
func (SDKExporterMetricDataPointExported) Unit()string
Unit returns the semantic convention unit of the instrument
typeSDKExporterMetricDataPointInflight¶
type SDKExporterMetricDataPointInflight struct {metric.Int64UpDownCounter}SDKExporterMetricDataPointInflight is an instrument used to record metricvalues conforming to the "otel.sdk.exporter.metric_data_point.inflight"semantic conventions. It represents the number of metric data points whichwere passed to the exporter, but that have not been exported yet (neithersuccessful, nor failed).
funcNewSDKExporterMetricDataPointInflight¶
func NewSDKExporterMetricDataPointInflight(mmetric.Meter,opt ...metric.Int64UpDownCounterOption,) (SDKExporterMetricDataPointInflight,error)
NewSDKExporterMetricDataPointInflight returns a newSDKExporterMetricDataPointInflight instrument.
func (SDKExporterMetricDataPointInflight)Add¶
func (mSDKExporterMetricDataPointInflight) Add(ctxcontext.Context,incrint64,attrs ...attribute.KeyValue,)
Add adds incr to the existing count for attrs.
All additional attrs passed are included in the recorded value.
For successful exports, `error.type` MUST NOT be set. For failed exports,`error.type` MUST contain the failure cause.
func (SDKExporterMetricDataPointInflight)AddSet¶
AddSet adds incr to the existing count for set.
For successful exports, `error.type` MUST NOT be set. For failed exports,`error.type` MUST contain the failure cause.
func (SDKExporterMetricDataPointInflight)AttrComponentName¶
func (SDKExporterMetricDataPointInflight) AttrComponentName(valstring)attribute.KeyValue
AttrComponentName returns an optional attribute for the "otel.component.name"semantic convention. It represents a name uniquely identifying the instance ofthe OpenTelemetry component within its containing SDK instance.
func (SDKExporterMetricDataPointInflight)AttrComponentType¶
func (SDKExporterMetricDataPointInflight) AttrComponentType(valComponentTypeAttr)attribute.KeyValue
AttrComponentType returns an optional attribute for the "otel.component.type"semantic convention. It represents a name identifying the type of theOpenTelemetry component.
func (SDKExporterMetricDataPointInflight)AttrServerAddress¶
func (SDKExporterMetricDataPointInflight) AttrServerAddress(valstring)attribute.KeyValue
AttrServerAddress returns an optional attribute for the "server.address"semantic convention. It represents the server domain name if available withoutreverse DNS lookup; otherwise, IP address or Unix domain socket name.
func (SDKExporterMetricDataPointInflight)AttrServerPort¶
func (SDKExporterMetricDataPointInflight) AttrServerPort(valint)attribute.KeyValue
AttrServerPort returns an optional attribute for the "server.port" semanticconvention. It represents the server port number.
func (SDKExporterMetricDataPointInflight)Description¶
func (SDKExporterMetricDataPointInflight) Description()string
Description returns the semantic convention description of the instrument
func (SDKExporterMetricDataPointInflight)Inst¶
func (mSDKExporterMetricDataPointInflight) Inst()metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (SDKExporterMetricDataPointInflight)Name¶
func (SDKExporterMetricDataPointInflight) Name()string
Name returns the semantic convention name of the instrument.
func (SDKExporterMetricDataPointInflight)Unit¶
func (SDKExporterMetricDataPointInflight) Unit()string
Unit returns the semantic convention unit of the instrument
typeSDKExporterOperationDuration¶
type SDKExporterOperationDuration struct {metric.Float64Histogram}SDKExporterOperationDuration is an instrument used to record metric valuesconforming to the "otel.sdk.exporter.operation.duration" semantic conventions.It represents the duration of exporting a batch of telemetry records.
funcNewSDKExporterOperationDuration¶
func NewSDKExporterOperationDuration(mmetric.Meter,opt ...metric.Float64HistogramOption,) (SDKExporterOperationDuration,error)
NewSDKExporterOperationDuration returns a new SDKExporterOperationDurationinstrument.
func (SDKExporterOperationDuration)AttrComponentName¶
func (SDKExporterOperationDuration) AttrComponentName(valstring)attribute.KeyValue
AttrComponentName returns an optional attribute for the "otel.component.name"semantic convention. It represents a name uniquely identifying the instance ofthe OpenTelemetry component within its containing SDK instance.
func (SDKExporterOperationDuration)AttrComponentType¶
func (SDKExporterOperationDuration) AttrComponentType(valComponentTypeAttr)attribute.KeyValue
AttrComponentType returns an optional attribute for the "otel.component.type"semantic convention. It represents a name identifying the type of theOpenTelemetry component.
func (SDKExporterOperationDuration)AttrErrorType¶
func (SDKExporterOperationDuration) AttrErrorType(valErrorTypeAttr)attribute.KeyValue
AttrErrorType returns an optional attribute for the "error.type" semanticconvention. It represents the describes a class of error the operation endedwith.
func (SDKExporterOperationDuration)AttrHTTPResponseStatusCode¶
func (SDKExporterOperationDuration) AttrHTTPResponseStatusCode(valint)attribute.KeyValue
AttrHTTPResponseStatusCode returns an optional attribute for the"http.response.status_code" semantic convention. It represents the HTTP statuscode of the last HTTP request performed in scope of this export call.
func (SDKExporterOperationDuration)AttrRPCGRPCStatusCode¶
func (SDKExporterOperationDuration) AttrRPCGRPCStatusCode(valRPCGRPCStatusCodeAttr)attribute.KeyValue
AttrRPCGRPCStatusCode returns an optional attribute for the"rpc.grpc.status_code" semantic convention. It represents the gRPC status codeof the last gRPC requests performed in scope of this export call.
func (SDKExporterOperationDuration)AttrServerAddress¶
func (SDKExporterOperationDuration) AttrServerAddress(valstring)attribute.KeyValue
AttrServerAddress returns an optional attribute for the "server.address"semantic convention. It represents the server domain name if available withoutreverse DNS lookup; otherwise, IP address or Unix domain socket name.
func (SDKExporterOperationDuration)AttrServerPort¶
func (SDKExporterOperationDuration) AttrServerPort(valint)attribute.KeyValue
AttrServerPort returns an optional attribute for the "server.port" semanticconvention. It represents the server port number.
func (SDKExporterOperationDuration)Description¶
func (SDKExporterOperationDuration) Description()string
Description returns the semantic convention description of the instrument
func (SDKExporterOperationDuration)Inst¶
func (mSDKExporterOperationDuration) Inst()metric.Float64Histogram
Inst returns the underlying metric instrument.
func (SDKExporterOperationDuration)Name¶
func (SDKExporterOperationDuration) Name()string
Name returns the semantic convention name of the instrument.
func (SDKExporterOperationDuration)Record¶
func (mSDKExporterOperationDuration) Record(ctxcontext.Context,valfloat64,attrs ...attribute.KeyValue,)
Record records val to the current distribution for attrs.
All additional attrs passed are included in the recorded value.
This metric defines successful operations using the full success definitionsforhttpandgrpc. Anything else is defined as an unsuccessful operation. Forsuccessfuloperations, `error.type` MUST NOT be set. For unsuccessful export operations,`error.type` MUST contain a relevant failure cause.
func (SDKExporterOperationDuration)RecordSet¶
RecordSet records val to the current distribution for set.
This metric defines successful operations using the full success definitionsforhttpandgrpc. Anything else is defined as an unsuccessful operation. Forsuccessfuloperations, `error.type` MUST NOT be set. For unsuccessful export operations,`error.type` MUST contain a relevant failure cause.
func (SDKExporterOperationDuration)Unit¶
func (SDKExporterOperationDuration) Unit()string
Unit returns the semantic convention unit of the instrument
typeSDKExporterSpanExported¶
type SDKExporterSpanExported struct {metric.Int64Counter}SDKExporterSpanExported is an instrument used to record metric valuesconforming to the "otel.sdk.exporter.span.exported" semantic conventions. Itrepresents the number of spans for which the export has finished, eithersuccessful or failed.
funcNewSDKExporterSpanExported¶
func NewSDKExporterSpanExported(mmetric.Meter,opt ...metric.Int64CounterOption,) (SDKExporterSpanExported,error)
NewSDKExporterSpanExported returns a new SDKExporterSpanExported instrument.
func (SDKExporterSpanExported)Add¶
Add adds incr to the existing count for attrs.
All additional attrs passed are included in the recorded value.
For successful exports, `error.type` MUST NOT be set. For failed exports,`error.type` MUST contain the failure cause.For exporters with partial success semantics (e.g. OTLP with `rejected_spans`), rejected spans MUST count as failed and only non-rejected spans count assuccess.If no rejection reason is available, `rejected` SHOULD be used as value for`error.type`.
func (SDKExporterSpanExported)AddSet¶
AddSet adds incr to the existing count for set.
For successful exports, `error.type` MUST NOT be set. For failed exports,`error.type` MUST contain the failure cause.For exporters with partial success semantics (e.g. OTLP with `rejected_spans`), rejected spans MUST count as failed and only non-rejected spans count assuccess.If no rejection reason is available, `rejected` SHOULD be used as value for`error.type`.
func (SDKExporterSpanExported)AttrComponentName¶
func (SDKExporterSpanExported) AttrComponentName(valstring)attribute.KeyValue
AttrComponentName returns an optional attribute for the "otel.component.name"semantic convention. It represents a name uniquely identifying the instance ofthe OpenTelemetry component within its containing SDK instance.
func (SDKExporterSpanExported)AttrComponentType¶
func (SDKExporterSpanExported) AttrComponentType(valComponentTypeAttr)attribute.KeyValue
AttrComponentType returns an optional attribute for the "otel.component.type"semantic convention. It represents a name identifying the type of theOpenTelemetry component.
func (SDKExporterSpanExported)AttrErrorType¶
func (SDKExporterSpanExported) AttrErrorType(valErrorTypeAttr)attribute.KeyValue
AttrErrorType returns an optional attribute for the "error.type" semanticconvention. It represents the describes a class of error the operation endedwith.
func (SDKExporterSpanExported)AttrServerAddress¶
func (SDKExporterSpanExported) AttrServerAddress(valstring)attribute.KeyValue
AttrServerAddress returns an optional attribute for the "server.address"semantic convention. It represents the server domain name if available withoutreverse DNS lookup; otherwise, IP address or Unix domain socket name.
func (SDKExporterSpanExported)AttrServerPort¶
func (SDKExporterSpanExported) AttrServerPort(valint)attribute.KeyValue
AttrServerPort returns an optional attribute for the "server.port" semanticconvention. It represents the server port number.
func (SDKExporterSpanExported)Description¶
func (SDKExporterSpanExported) Description()string
Description returns the semantic convention description of the instrument
func (SDKExporterSpanExported)Inst¶
func (mSDKExporterSpanExported) Inst()metric.Int64Counter
Inst returns the underlying metric instrument.
func (SDKExporterSpanExported)Name¶
func (SDKExporterSpanExported) Name()string
Name returns the semantic convention name of the instrument.
func (SDKExporterSpanExported)Unit¶
func (SDKExporterSpanExported) Unit()string
Unit returns the semantic convention unit of the instrument
typeSDKExporterSpanInflight¶
type SDKExporterSpanInflight struct {metric.Int64UpDownCounter}SDKExporterSpanInflight is an instrument used to record metric valuesconforming to the "otel.sdk.exporter.span.inflight" semantic conventions. Itrepresents the number of spans which were passed to the exporter, but thathave not been exported yet (neither successful, nor failed).
funcNewSDKExporterSpanInflight¶
func NewSDKExporterSpanInflight(mmetric.Meter,opt ...metric.Int64UpDownCounterOption,) (SDKExporterSpanInflight,error)
NewSDKExporterSpanInflight returns a new SDKExporterSpanInflight instrument.
func (SDKExporterSpanInflight)Add¶
Add adds incr to the existing count for attrs.
All additional attrs passed are included in the recorded value.
For successful exports, `error.type` MUST NOT be set. For failed exports,`error.type` MUST contain the failure cause.
func (SDKExporterSpanInflight)AddSet¶
AddSet adds incr to the existing count for set.
For successful exports, `error.type` MUST NOT be set. For failed exports,`error.type` MUST contain the failure cause.
func (SDKExporterSpanInflight)AttrComponentName¶
func (SDKExporterSpanInflight) AttrComponentName(valstring)attribute.KeyValue
AttrComponentName returns an optional attribute for the "otel.component.name"semantic convention. It represents a name uniquely identifying the instance ofthe OpenTelemetry component within its containing SDK instance.
func (SDKExporterSpanInflight)AttrComponentType¶
func (SDKExporterSpanInflight) AttrComponentType(valComponentTypeAttr)attribute.KeyValue
AttrComponentType returns an optional attribute for the "otel.component.type"semantic convention. It represents a name identifying the type of theOpenTelemetry component.
func (SDKExporterSpanInflight)AttrServerAddress¶
func (SDKExporterSpanInflight) AttrServerAddress(valstring)attribute.KeyValue
AttrServerAddress returns an optional attribute for the "server.address"semantic convention. It represents the server domain name if available withoutreverse DNS lookup; otherwise, IP address or Unix domain socket name.
func (SDKExporterSpanInflight)AttrServerPort¶
func (SDKExporterSpanInflight) AttrServerPort(valint)attribute.KeyValue
AttrServerPort returns an optional attribute for the "server.port" semanticconvention. It represents the server port number.
func (SDKExporterSpanInflight)Description¶
func (SDKExporterSpanInflight) Description()string
Description returns the semantic convention description of the instrument
func (SDKExporterSpanInflight)Inst¶
func (mSDKExporterSpanInflight) Inst()metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (SDKExporterSpanInflight)Name¶
func (SDKExporterSpanInflight) Name()string
Name returns the semantic convention name of the instrument.
func (SDKExporterSpanInflight)Unit¶
func (SDKExporterSpanInflight) Unit()string
Unit returns the semantic convention unit of the instrument
typeSDKLogCreated¶
type SDKLogCreated struct {metric.Int64Counter}SDKLogCreated is an instrument used to record metric values conforming to the"otel.sdk.log.created" semantic conventions. It represents the number of logssubmitted to enabled SDK Loggers.
funcNewSDKLogCreated¶
func NewSDKLogCreated(mmetric.Meter,opt ...metric.Int64CounterOption,) (SDKLogCreated,error)
NewSDKLogCreated returns a new SDKLogCreated instrument.
func (SDKLogCreated)Description¶
func (SDKLogCreated) Description()string
Description returns the semantic convention description of the instrument
func (SDKLogCreated)Inst¶
func (mSDKLogCreated) Inst()metric.Int64Counter
Inst returns the underlying metric instrument.
func (SDKLogCreated)Name¶
func (SDKLogCreated) Name()string
Name returns the semantic convention name of the instrument.
func (SDKLogCreated)Unit¶
func (SDKLogCreated) Unit()string
Unit returns the semantic convention unit of the instrument
typeSDKMetricReaderCollectionDuration¶
type SDKMetricReaderCollectionDuration struct {metric.Float64Histogram}SDKMetricReaderCollectionDuration is an instrument used to record metricvalues conforming to the "otel.sdk.metric_reader.collection.duration" semanticconventions. It represents the duration of the collect operation of the metricreader.
funcNewSDKMetricReaderCollectionDuration¶
func NewSDKMetricReaderCollectionDuration(mmetric.Meter,opt ...metric.Float64HistogramOption,) (SDKMetricReaderCollectionDuration,error)
NewSDKMetricReaderCollectionDuration returns a newSDKMetricReaderCollectionDuration instrument.
func (SDKMetricReaderCollectionDuration)AttrComponentName¶
func (SDKMetricReaderCollectionDuration) AttrComponentName(valstring)attribute.KeyValue
AttrComponentName returns an optional attribute for the "otel.component.name"semantic convention. It represents a name uniquely identifying the instance ofthe OpenTelemetry component within its containing SDK instance.
func (SDKMetricReaderCollectionDuration)AttrComponentType¶
func (SDKMetricReaderCollectionDuration) AttrComponentType(valComponentTypeAttr)attribute.KeyValue
AttrComponentType returns an optional attribute for the "otel.component.type"semantic convention. It represents a name identifying the type of theOpenTelemetry component.
func (SDKMetricReaderCollectionDuration)AttrErrorType¶
func (SDKMetricReaderCollectionDuration) AttrErrorType(valErrorTypeAttr)attribute.KeyValue
AttrErrorType returns an optional attribute for the "error.type" semanticconvention. It represents the describes a class of error the operation endedwith.
func (SDKMetricReaderCollectionDuration)Description¶
func (SDKMetricReaderCollectionDuration) Description()string
Description returns the semantic convention description of the instrument
func (SDKMetricReaderCollectionDuration)Inst¶
func (mSDKMetricReaderCollectionDuration) Inst()metric.Float64Histogram
Inst returns the underlying metric instrument.
func (SDKMetricReaderCollectionDuration)Name¶
func (SDKMetricReaderCollectionDuration) Name()string
Name returns the semantic convention name of the instrument.
func (SDKMetricReaderCollectionDuration)Record¶
func (mSDKMetricReaderCollectionDuration) Record(ctxcontext.Context,valfloat64,attrs ...attribute.KeyValue,)
Record records val to the current distribution for attrs.
All additional attrs passed are included in the recorded value.
For successful collections, `error.type` MUST NOT be set. For failedcollections, `error.type` SHOULD contain the failure cause.It can happen that metrics collection is successful for some MetricProducers,while others fail. In that case `error.type` SHOULD be set to any of thefailure causes.
func (SDKMetricReaderCollectionDuration)RecordSet¶
func (mSDKMetricReaderCollectionDuration) RecordSet(ctxcontext.Context, valfloat64, setattribute.Set)
RecordSet records val to the current distribution for set.
For successful collections, `error.type` MUST NOT be set. For failedcollections, `error.type` SHOULD contain the failure cause.It can happen that metrics collection is successful for some MetricProducers,while others fail. In that case `error.type` SHOULD be set to any of thefailure causes.
func (SDKMetricReaderCollectionDuration)Unit¶
func (SDKMetricReaderCollectionDuration) Unit()string
Unit returns the semantic convention unit of the instrument
typeSDKProcessorLogProcessed¶
type SDKProcessorLogProcessed struct {metric.Int64Counter}SDKProcessorLogProcessed is an instrument used to record metric valuesconforming to the "otel.sdk.processor.log.processed" semantic conventions. Itrepresents the number of log records for which the processing has finished,either successful or failed.
funcNewSDKProcessorLogProcessed¶
func NewSDKProcessorLogProcessed(mmetric.Meter,opt ...metric.Int64CounterOption,) (SDKProcessorLogProcessed,error)
NewSDKProcessorLogProcessed returns a new SDKProcessorLogProcessed instrument.
func (SDKProcessorLogProcessed)Add¶
Add adds incr to the existing count for attrs.
All additional attrs passed are included in the recorded value.
For successful processing, `error.type` MUST NOT be set. For failedprocessing, `error.type` MUST contain the failure cause.For the SDK Simple and Batching Log Record Processor a log record isconsidered to be processed already when it has been submitted to the exporter,not when the corresponding export call has finished.
func (SDKProcessorLogProcessed)AddSet¶
AddSet adds incr to the existing count for set.
For successful processing, `error.type` MUST NOT be set. For failedprocessing, `error.type` MUST contain the failure cause.For the SDK Simple and Batching Log Record Processor a log record isconsidered to be processed already when it has been submitted to the exporter,not when the corresponding export call has finished.
func (SDKProcessorLogProcessed)AttrComponentName¶
func (SDKProcessorLogProcessed) AttrComponentName(valstring)attribute.KeyValue
AttrComponentName returns an optional attribute for the "otel.component.name"semantic convention. It represents a name uniquely identifying the instance ofthe OpenTelemetry component within its containing SDK instance.
func (SDKProcessorLogProcessed)AttrComponentType¶
func (SDKProcessorLogProcessed) AttrComponentType(valComponentTypeAttr)attribute.KeyValue
AttrComponentType returns an optional attribute for the "otel.component.type"semantic convention. It represents a name identifying the type of theOpenTelemetry component.
func (SDKProcessorLogProcessed)AttrErrorType¶
func (SDKProcessorLogProcessed) AttrErrorType(valErrorTypeAttr)attribute.KeyValue
AttrErrorType returns an optional attribute for the "error.type" semanticconvention. It represents a low-cardinality description of the failure reason.SDK Batching Log Record Processors MUST use `queue_full` for log recordsdropped due to a full queue.
func (SDKProcessorLogProcessed)Description¶
func (SDKProcessorLogProcessed) Description()string
Description returns the semantic convention description of the instrument
func (SDKProcessorLogProcessed)Inst¶
func (mSDKProcessorLogProcessed) Inst()metric.Int64Counter
Inst returns the underlying metric instrument.
func (SDKProcessorLogProcessed)Name¶
func (SDKProcessorLogProcessed) Name()string
Name returns the semantic convention name of the instrument.
func (SDKProcessorLogProcessed)Unit¶
func (SDKProcessorLogProcessed) Unit()string
Unit returns the semantic convention unit of the instrument
typeSDKProcessorLogQueueCapacity¶
type SDKProcessorLogQueueCapacity struct {metric.Int64ObservableUpDownCounter}SDKProcessorLogQueueCapacity is an instrument used to record metric valuesconforming to the "otel.sdk.processor.log.queue.capacity" semanticconventions. It represents the maximum number of log records the queue of agiven instance of an SDK Log Record processor can hold.
funcNewSDKProcessorLogQueueCapacity¶
func NewSDKProcessorLogQueueCapacity(mmetric.Meter,opt ...metric.Int64ObservableUpDownCounterOption,) (SDKProcessorLogQueueCapacity,error)
NewSDKProcessorLogQueueCapacity returns a new SDKProcessorLogQueueCapacityinstrument.
func (SDKProcessorLogQueueCapacity)AttrComponentName¶
func (SDKProcessorLogQueueCapacity) AttrComponentName(valstring)attribute.KeyValue
AttrComponentName returns an optional attribute for the "otel.component.name"semantic convention. It represents a name uniquely identifying the instance ofthe OpenTelemetry component within its containing SDK instance.
func (SDKProcessorLogQueueCapacity)AttrComponentType¶
func (SDKProcessorLogQueueCapacity) AttrComponentType(valComponentTypeAttr)attribute.KeyValue
AttrComponentType returns an optional attribute for the "otel.component.type"semantic convention. It represents a name identifying the type of theOpenTelemetry component.
func (SDKProcessorLogQueueCapacity)Description¶
func (SDKProcessorLogQueueCapacity) Description()string
Description returns the semantic convention description of the instrument
func (SDKProcessorLogQueueCapacity)Inst¶
func (mSDKProcessorLogQueueCapacity) Inst()metric.Int64ObservableUpDownCounter
Inst returns the underlying metric instrument.
func (SDKProcessorLogQueueCapacity)Name¶
func (SDKProcessorLogQueueCapacity) Name()string
Name returns the semantic convention name of the instrument.
func (SDKProcessorLogQueueCapacity)Unit¶
func (SDKProcessorLogQueueCapacity) Unit()string
Unit returns the semantic convention unit of the instrument
typeSDKProcessorLogQueueSize¶
type SDKProcessorLogQueueSize struct {metric.Int64ObservableUpDownCounter}SDKProcessorLogQueueSize is an instrument used to record metric valuesconforming to the "otel.sdk.processor.log.queue.size" semantic conventions. Itrepresents the number of log records in the queue of a given instance of anSDK log processor.
funcNewSDKProcessorLogQueueSize¶
func NewSDKProcessorLogQueueSize(mmetric.Meter,opt ...metric.Int64ObservableUpDownCounterOption,) (SDKProcessorLogQueueSize,error)
NewSDKProcessorLogQueueSize returns a new SDKProcessorLogQueueSize instrument.
func (SDKProcessorLogQueueSize)AttrComponentName¶
func (SDKProcessorLogQueueSize) AttrComponentName(valstring)attribute.KeyValue
AttrComponentName returns an optional attribute for the "otel.component.name"semantic convention. It represents a name uniquely identifying the instance ofthe OpenTelemetry component within its containing SDK instance.
func (SDKProcessorLogQueueSize)AttrComponentType¶
func (SDKProcessorLogQueueSize) AttrComponentType(valComponentTypeAttr)attribute.KeyValue
AttrComponentType returns an optional attribute for the "otel.component.type"semantic convention. It represents a name identifying the type of theOpenTelemetry component.
func (SDKProcessorLogQueueSize)Description¶
func (SDKProcessorLogQueueSize) Description()string
Description returns the semantic convention description of the instrument
func (SDKProcessorLogQueueSize)Inst¶
func (mSDKProcessorLogQueueSize) Inst()metric.Int64ObservableUpDownCounter
Inst returns the underlying metric instrument.
func (SDKProcessorLogQueueSize)Name¶
func (SDKProcessorLogQueueSize) Name()string
Name returns the semantic convention name of the instrument.
func (SDKProcessorLogQueueSize)Unit¶
func (SDKProcessorLogQueueSize) Unit()string
Unit returns the semantic convention unit of the instrument
typeSDKProcessorSpanProcessed¶
type SDKProcessorSpanProcessed struct {metric.Int64Counter}SDKProcessorSpanProcessed is an instrument used to record metric valuesconforming to the "otel.sdk.processor.span.processed" semantic conventions. Itrepresents the number of spans for which the processing has finished, eithersuccessful or failed.
funcNewSDKProcessorSpanProcessed¶
func NewSDKProcessorSpanProcessed(mmetric.Meter,opt ...metric.Int64CounterOption,) (SDKProcessorSpanProcessed,error)
NewSDKProcessorSpanProcessed returns a new SDKProcessorSpanProcessedinstrument.
func (SDKProcessorSpanProcessed)Add¶
Add adds incr to the existing count for attrs.
All additional attrs passed are included in the recorded value.
For successful processing, `error.type` MUST NOT be set. For failedprocessing, `error.type` MUST contain the failure cause.For the SDK Simple and Batching Span Processor a span is considered to beprocessed already when it has been submitted to the exporter, not when thecorresponding export call has finished.
func (SDKProcessorSpanProcessed)AddSet¶
AddSet adds incr to the existing count for set.
For successful processing, `error.type` MUST NOT be set. For failedprocessing, `error.type` MUST contain the failure cause.For the SDK Simple and Batching Span Processor a span is considered to beprocessed already when it has been submitted to the exporter, not when thecorresponding export call has finished.
func (SDKProcessorSpanProcessed)AttrComponentName¶
func (SDKProcessorSpanProcessed) AttrComponentName(valstring)attribute.KeyValue
AttrComponentName returns an optional attribute for the "otel.component.name"semantic convention. It represents a name uniquely identifying the instance ofthe OpenTelemetry component within its containing SDK instance.
func (SDKProcessorSpanProcessed)AttrComponentType¶
func (SDKProcessorSpanProcessed) AttrComponentType(valComponentTypeAttr)attribute.KeyValue
AttrComponentType returns an optional attribute for the "otel.component.type"semantic convention. It represents a name identifying the type of theOpenTelemetry component.
func (SDKProcessorSpanProcessed)AttrErrorType¶
func (SDKProcessorSpanProcessed) AttrErrorType(valErrorTypeAttr)attribute.KeyValue
AttrErrorType returns an optional attribute for the "error.type" semanticconvention. It represents a low-cardinality description of the failure reason.SDK Batching Span Processors MUST use `queue_full` for spans dropped due to afull queue.
func (SDKProcessorSpanProcessed)Description¶
func (SDKProcessorSpanProcessed) Description()string
Description returns the semantic convention description of the instrument
func (SDKProcessorSpanProcessed)Inst¶
func (mSDKProcessorSpanProcessed) Inst()metric.Int64Counter
Inst returns the underlying metric instrument.
func (SDKProcessorSpanProcessed)Name¶
func (SDKProcessorSpanProcessed) Name()string
Name returns the semantic convention name of the instrument.
func (SDKProcessorSpanProcessed)Unit¶
func (SDKProcessorSpanProcessed) Unit()string
Unit returns the semantic convention unit of the instrument
typeSDKProcessorSpanQueueCapacity¶
type SDKProcessorSpanQueueCapacity struct {metric.Int64ObservableUpDownCounter}SDKProcessorSpanQueueCapacity is an instrument used to record metric valuesconforming to the "otel.sdk.processor.span.queue.capacity" semanticconventions. It represents the maximum number of spans the queue of a giveninstance of an SDK span processor can hold.
funcNewSDKProcessorSpanQueueCapacity¶
func NewSDKProcessorSpanQueueCapacity(mmetric.Meter,opt ...metric.Int64ObservableUpDownCounterOption,) (SDKProcessorSpanQueueCapacity,error)
NewSDKProcessorSpanQueueCapacity returns a new SDKProcessorSpanQueueCapacityinstrument.
func (SDKProcessorSpanQueueCapacity)AttrComponentName¶
func (SDKProcessorSpanQueueCapacity) AttrComponentName(valstring)attribute.KeyValue
AttrComponentName returns an optional attribute for the "otel.component.name"semantic convention. It represents a name uniquely identifying the instance ofthe OpenTelemetry component within its containing SDK instance.
func (SDKProcessorSpanQueueCapacity)AttrComponentType¶
func (SDKProcessorSpanQueueCapacity) AttrComponentType(valComponentTypeAttr)attribute.KeyValue
AttrComponentType returns an optional attribute for the "otel.component.type"semantic convention. It represents a name identifying the type of theOpenTelemetry component.
func (SDKProcessorSpanQueueCapacity)Description¶
func (SDKProcessorSpanQueueCapacity) Description()string
Description returns the semantic convention description of the instrument
func (SDKProcessorSpanQueueCapacity)Inst¶
func (mSDKProcessorSpanQueueCapacity) Inst()metric.Int64ObservableUpDownCounter
Inst returns the underlying metric instrument.
func (SDKProcessorSpanQueueCapacity)Name¶
func (SDKProcessorSpanQueueCapacity) Name()string
Name returns the semantic convention name of the instrument.
func (SDKProcessorSpanQueueCapacity)Unit¶
func (SDKProcessorSpanQueueCapacity) Unit()string
Unit returns the semantic convention unit of the instrument
typeSDKProcessorSpanQueueSize¶
type SDKProcessorSpanQueueSize struct {metric.Int64ObservableUpDownCounter}SDKProcessorSpanQueueSize is an instrument used to record metric valuesconforming to the "otel.sdk.processor.span.queue.size" semantic conventions.It represents the number of spans in the queue of a given instance of an SDKspan processor.
funcNewSDKProcessorSpanQueueSize¶
func NewSDKProcessorSpanQueueSize(mmetric.Meter,opt ...metric.Int64ObservableUpDownCounterOption,) (SDKProcessorSpanQueueSize,error)
NewSDKProcessorSpanQueueSize returns a new SDKProcessorSpanQueueSizeinstrument.
func (SDKProcessorSpanQueueSize)AttrComponentName¶
func (SDKProcessorSpanQueueSize) AttrComponentName(valstring)attribute.KeyValue
AttrComponentName returns an optional attribute for the "otel.component.name"semantic convention. It represents a name uniquely identifying the instance ofthe OpenTelemetry component within its containing SDK instance.
func (SDKProcessorSpanQueueSize)AttrComponentType¶
func (SDKProcessorSpanQueueSize) AttrComponentType(valComponentTypeAttr)attribute.KeyValue
AttrComponentType returns an optional attribute for the "otel.component.type"semantic convention. It represents a name identifying the type of theOpenTelemetry component.
func (SDKProcessorSpanQueueSize)Description¶
func (SDKProcessorSpanQueueSize) Description()string
Description returns the semantic convention description of the instrument
func (SDKProcessorSpanQueueSize)Inst¶
func (mSDKProcessorSpanQueueSize) Inst()metric.Int64ObservableUpDownCounter
Inst returns the underlying metric instrument.
func (SDKProcessorSpanQueueSize)Name¶
func (SDKProcessorSpanQueueSize) Name()string
Name returns the semantic convention name of the instrument.
func (SDKProcessorSpanQueueSize)Unit¶
func (SDKProcessorSpanQueueSize) Unit()string
Unit returns the semantic convention unit of the instrument
typeSDKSpanLive¶
type SDKSpanLive struct {metric.Int64UpDownCounter}SDKSpanLive is an instrument used to record metric values conforming to the"otel.sdk.span.live" semantic conventions. It represents the number of createdspans with `recording=true` for which the end operation has not been calledyet.
funcNewSDKSpanLive¶
func NewSDKSpanLive(mmetric.Meter,opt ...metric.Int64UpDownCounterOption,) (SDKSpanLive,error)
NewSDKSpanLive returns a new SDKSpanLive instrument.
func (SDKSpanLive)Add¶
Add adds incr to the existing count for attrs.
All additional attrs passed are included in the recorded value.
func (SDKSpanLive)AttrSpanSamplingResult¶
func (SDKSpanLive) AttrSpanSamplingResult(valSpanSamplingResultAttr)attribute.KeyValue
AttrSpanSamplingResult returns an optional attribute for the"otel.span.sampling_result" semantic convention. It represents the resultvalue of the sampler for this span.
func (SDKSpanLive)Description¶
func (SDKSpanLive) Description()string
Description returns the semantic convention description of the instrument
func (SDKSpanLive)Inst¶
func (mSDKSpanLive) Inst()metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (SDKSpanLive)Name¶
func (SDKSpanLive) Name()string
Name returns the semantic convention name of the instrument.
func (SDKSpanLive)Unit¶
func (SDKSpanLive) Unit()string
Unit returns the semantic convention unit of the instrument
typeSDKSpanStarted¶
type SDKSpanStarted struct {metric.Int64Counter}SDKSpanStarted is an instrument used to record metric values conforming to the"otel.sdk.span.started" semantic conventions. It represents the number ofcreated spans.
funcNewSDKSpanStarted¶
func NewSDKSpanStarted(mmetric.Meter,opt ...metric.Int64CounterOption,) (SDKSpanStarted,error)
NewSDKSpanStarted returns a new SDKSpanStarted instrument.
func (SDKSpanStarted)Add¶
Add adds incr to the existing count for attrs.
All additional attrs passed are included in the recorded value.
Implementations MUST record this metric for all spans, even for non-recordingones.
func (SDKSpanStarted)AddSet¶
AddSet adds incr to the existing count for set.
Implementations MUST record this metric for all spans, even for non-recordingones.
func (SDKSpanStarted)AttrSpanParentOrigin¶
func (SDKSpanStarted) AttrSpanParentOrigin(valSpanParentOriginAttr)attribute.KeyValue
AttrSpanParentOrigin returns an optional attribute for the"otel.span.parent.origin" semantic convention. It represents the determineswhether the span has a parent span, and if so,whether it is a remote parent.
func (SDKSpanStarted)AttrSpanSamplingResult¶
func (SDKSpanStarted) AttrSpanSamplingResult(valSpanSamplingResultAttr)attribute.KeyValue
AttrSpanSamplingResult returns an optional attribute for the"otel.span.sampling_result" semantic convention. It represents the resultvalue of the sampler for this span.
func (SDKSpanStarted)Description¶
func (SDKSpanStarted) Description()string
Description returns the semantic convention description of the instrument
func (SDKSpanStarted)Inst¶
func (mSDKSpanStarted) Inst()metric.Int64Counter
Inst returns the underlying metric instrument.
func (SDKSpanStarted)Name¶
func (SDKSpanStarted) Name()string
Name returns the semantic convention name of the instrument.
func (SDKSpanStarted)Unit¶
func (SDKSpanStarted) Unit()string
Unit returns the semantic convention unit of the instrument
typeSpanParentOriginAttr¶
type SpanParentOriginAttrstring
SpanParentOriginAttr is an attribute conforming to the otel.span.parent.originsemantic conventions. It represents the determines whether the span has aparent span, and if so,whether it is a remote parent.
var (// SpanParentOriginNone is the span does not have a parent, it is a root span.SpanParentOriginNoneSpanParentOriginAttr = "none"// SpanParentOriginLocal is the span has a parent and the parent's span context// [isRemote()] is false.//// [isRemote()]:https://opentelemetry.io/docs/specs/otel/trace/api/#isremoteSpanParentOriginLocalSpanParentOriginAttr = "local"// SpanParentOriginRemote is the span has a parent and the parent's span context// [isRemote()] is true.//// [isRemote()]:https://opentelemetry.io/docs/specs/otel/trace/api/#isremoteSpanParentOriginRemoteSpanParentOriginAttr = "remote")
typeSpanSamplingResultAttr¶
type SpanSamplingResultAttrstring
SpanSamplingResultAttr is an attribute conforming to theotel.span.sampling_result semantic conventions. It represents the result valueof the sampler for this span.
var (// SpanSamplingResultDrop is the span is not sampled and not recording.SpanSamplingResultDropSpanSamplingResultAttr = "DROP"// SpanSamplingResultRecordOnly is the span is not sampled, but recording.SpanSamplingResultRecordOnlySpanSamplingResultAttr = "RECORD_ONLY"// SpanSamplingResultRecordAndSample is the span is sampled and recording.SpanSamplingResultRecordAndSampleSpanSamplingResultAttr = "RECORD_AND_SAMPLE")