otelconv
v1.47.0
Documentation
pkg.go.dev ↗Package otelconv provides types and functionality for OpenTelemetry semantic conventions in the "otel" namespace.
Types
ComponentTypeAttr
type ComponentTypeAttr string
ComponentTypeAttr is an attribute conforming to the otel.component.type semantic conventions. It represents a name identifying the type of the OpenTelemetry component.
ComponentTypeBatchingSpanProcessor (14 declarations)
var ( // ComponentTypeBatchingSpanProcessor is the builtin SDK batching span // processor. ComponentTypeBatchingSpanProcessor ComponentTypeAttr = "batching_span_processor" // ComponentTypeSimpleSpanProcessor is the builtin SDK simple span processor. ComponentTypeSimpleSpanProcessor ComponentTypeAttr = "simple_span_processor" // ComponentTypeBatchingLogProcessor is the builtin SDK batching log record // processor. ComponentTypeBatchingLogProcessor ComponentTypeAttr = "batching_log_processor" // ComponentTypeSimpleLogProcessor is the builtin SDK simple log record // processor. ComponentTypeSimpleLogProcessor ComponentTypeAttr = "simple_log_processor" // ComponentTypeOtlpGRPCSpanExporter is the OTLP span exporter over gRPC with // protobuf serialization. ComponentTypeOtlpGRPCSpanExporter ComponentTypeAttr = "otlp_grpc_span_exporter" // ComponentTypeOtlpHTTPSpanExporter is the OTLP span exporter over HTTP with // protobuf serialization. ComponentTypeOtlpHTTPSpanExporter ComponentTypeAttr = "otlp_http_span_exporter" // ComponentTypeOtlpHTTPJSONSpanExporter is the OTLP span exporter over HTTP // with JSON serialization. ComponentTypeOtlpHTTPJSONSpanExporter ComponentTypeAttr = "otlp_http_json_span_exporter" // ComponentTypeOtlpGRPCLogExporter is the OTLP log record exporter over gRPC // with protobuf serialization. ComponentTypeOtlpGRPCLogExporter ComponentTypeAttr = "otlp_grpc_log_exporter" // ComponentTypeOtlpHTTPLogExporter is the OTLP log record exporter over HTTP // with protobuf serialization. ComponentTypeOtlpHTTPLogExporter ComponentTypeAttr = "otlp_http_log_exporter" // ComponentTypeOtlpHTTPJSONLogExporter is the OTLP log record exporter over // HTTP with JSON serialization. ComponentTypeOtlpHTTPJSONLogExporter ComponentTypeAttr = "otlp_http_json_log_exporter" // ComponentTypePeriodicMetricReader is the builtin SDK periodically exporting // metric reader. ComponentTypePeriodicMetricReader ComponentTypeAttr = "periodic_metric_reader" // ComponentTypeOtlpGRPCMetricExporter is the OTLP metric exporter over gRPC // with protobuf serialization. ComponentTypeOtlpGRPCMetricExporter ComponentTypeAttr = "otlp_grpc_metric_exporter" // ComponentTypeOtlpHTTPMetricExporter is the OTLP metric exporter over HTTP // with protobuf serialization. ComponentTypeOtlpHTTPMetricExporter ComponentTypeAttr = "otlp_http_metric_exporter" // ComponentTypeOtlpHTTPJSONMetricExporter is the OTLP metric exporter over HTTP // with JSON serialization. ComponentTypeOtlpHTTPJSONMetricExporter ComponentTypeAttr = "otlp_http_json_metric_exporter" )
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.
RPCGRPCStatusCodeAttr
type RPCGRPCStatusCodeAttr int64
RPCGRPCStatusCodeAttr is an attribute conforming to the rpc.grpc.status_code semantic conventions. It represents the gRPC status code of the last gRPC requests performed in scope of this export call.
RPCGRPCStatusCodeOk (17 declarations)
var ( // RPCGRPCStatusCodeOk is the OK. RPCGRPCStatusCodeOk RPCGRPCStatusCodeAttr = 0 // RPCGRPCStatusCodeCancelled is the CANCELLED. RPCGRPCStatusCodeCancelled RPCGRPCStatusCodeAttr = 1 // RPCGRPCStatusCodeUnknown is the UNKNOWN. RPCGRPCStatusCodeUnknown RPCGRPCStatusCodeAttr = 2 // RPCGRPCStatusCodeInvalidArgument is the INVALID_ARGUMENT. RPCGRPCStatusCodeInvalidArgument RPCGRPCStatusCodeAttr = 3 // RPCGRPCStatusCodeDeadlineExceeded is the DEADLINE_EXCEEDED. RPCGRPCStatusCodeDeadlineExceeded RPCGRPCStatusCodeAttr = 4 // RPCGRPCStatusCodeNotFound is the NOT_FOUND. RPCGRPCStatusCodeNotFound RPCGRPCStatusCodeAttr = 5 // RPCGRPCStatusCodeAlreadyExists is the ALREADY_EXISTS. RPCGRPCStatusCodeAlreadyExists RPCGRPCStatusCodeAttr = 6 // RPCGRPCStatusCodePermissionDenied is the PERMISSION_DENIED. RPCGRPCStatusCodePermissionDenied RPCGRPCStatusCodeAttr = 7 // RPCGRPCStatusCodeResourceExhausted is the RESOURCE_EXHAUSTED. RPCGRPCStatusCodeResourceExhausted RPCGRPCStatusCodeAttr = 8 // RPCGRPCStatusCodeFailedPrecondition is the FAILED_PRECONDITION. RPCGRPCStatusCodeFailedPrecondition RPCGRPCStatusCodeAttr = 9 // RPCGRPCStatusCodeAborted is the ABORTED. RPCGRPCStatusCodeAborted RPCGRPCStatusCodeAttr = 10 // RPCGRPCStatusCodeOutOfRange is the OUT_OF_RANGE. RPCGRPCStatusCodeOutOfRange RPCGRPCStatusCodeAttr = 11 // RPCGRPCStatusCodeUnimplemented is the UNIMPLEMENTED. RPCGRPCStatusCodeUnimplemented RPCGRPCStatusCodeAttr = 12 // RPCGRPCStatusCodeInternal is the INTERNAL. RPCGRPCStatusCodeInternal RPCGRPCStatusCodeAttr = 13 // RPCGRPCStatusCodeUnavailable is the UNAVAILABLE. RPCGRPCStatusCodeUnavailable RPCGRPCStatusCodeAttr = 14 // RPCGRPCStatusCodeDataLoss is the DATA_LOSS. RPCGRPCStatusCodeDataLoss RPCGRPCStatusCodeAttr = 15 // RPCGRPCStatusCodeUnauthenticated is the UNAUTHENTICATED. RPCGRPCStatusCodeUnauthenticated RPCGRPCStatusCodeAttr = 16 )
SDKExporterLogExported
type SDKExporterLogExported struct {
metric.Int64Counter
}
SDKExporterLogExported is an instrument used to record metric values conforming to the "otel.sdk.exporter.log.exported" semantic conventions. It represents the number of log records for which the export has finished, either successful or failed.
NewSDKExporterLogExported
func NewSDKExporterLogExported( m metric.Meter, opt ...metric.Int64CounterOption, ) (SDKExporterLogExported, error)
NewSDKExporterLogExported returns a new SDKExporterLogExported instrument.
SDKExporterLogExported.Add
func (m SDKExporterLogExported) 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.
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 only non-rejected log records count as success. If no rejection reason is available, `rejected` SHOULD be used as value for `error.type`.
SDKExporterLogExported.AttrComponentName
func (SDKExporterLogExported) AttrComponentName(val string) attribute.KeyValue
AttrComponentName returns an optional attribute for the "otel.component.name" semantic convention. It represents a name uniquely identifying the instance of the OpenTelemetry component within its containing SDK instance.
SDKExporterLogExported.AttrComponentType
func (SDKExporterLogExported) AttrComponentType(val ComponentTypeAttr) attribute.KeyValue
AttrComponentType returns an optional attribute for the "otel.component.type" semantic convention. It represents a name identifying the type of the OpenTelemetry component.
SDKExporterLogExported.AttrErrorType
func (SDKExporterLogExported) 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.
SDKExporterLogExported.AttrServerAddress
func (SDKExporterLogExported) AttrServerAddress(val string) attribute.KeyValue
AttrServerAddress returns an optional attribute for the "server.address" semantic convention. It represents the server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
SDKExporterLogExported.AttrServerPort
func (SDKExporterLogExported) AttrServerPort(val int) attribute.KeyValue
AttrServerPort returns an optional attribute for the "server.port" semantic convention. It represents the server port number.
SDKExporterLogExported.Description
func (SDKExporterLogExported) Description() string
Description returns the semantic convention description of the instrument
SDKExporterLogExported.Inst
func (m SDKExporterLogExported) Inst() metric.Int64Counter
Inst returns the underlying metric instrument.
SDKExporterLogExported.Name
func (SDKExporterLogExported) Name() string
Name returns the semantic convention name of the instrument.
SDKExporterLogExported.Unit
func (SDKExporterLogExported) Unit() string
Unit returns the semantic convention unit of the instrument
SDKExporterLogInflight
type SDKExporterLogInflight struct {
metric.Int64UpDownCounter
}
SDKExporterLogInflight is an instrument used to record metric values conforming to the "otel.sdk.exporter.log.inflight" semantic conventions. It represents the number of log records which were passed to the exporter, but that have not been exported yet (neither successful, nor failed).
NewSDKExporterLogInflight
func NewSDKExporterLogInflight( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (SDKExporterLogInflight, error)
NewSDKExporterLogInflight returns a new SDKExporterLogInflight instrument.
SDKExporterLogInflight.Add
func (m SDKExporterLogInflight) 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.
For successful exports, `error.type` MUST NOT be set. For failed exports, `error.type` MUST contain the failure cause.
SDKExporterLogInflight.AttrComponentName
func (SDKExporterLogInflight) AttrComponentName(val string) attribute.KeyValue
AttrComponentName returns an optional attribute for the "otel.component.name" semantic convention. It represents a name uniquely identifying the instance of the OpenTelemetry component within its containing SDK instance.
SDKExporterLogInflight.AttrComponentType
func (SDKExporterLogInflight) AttrComponentType(val ComponentTypeAttr) attribute.KeyValue
AttrComponentType returns an optional attribute for the "otel.component.type" semantic convention. It represents a name identifying the type of the OpenTelemetry component.
SDKExporterLogInflight.AttrServerAddress
func (SDKExporterLogInflight) AttrServerAddress(val string) attribute.KeyValue
AttrServerAddress returns an optional attribute for the "server.address" semantic convention. It represents the server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
SDKExporterLogInflight.AttrServerPort
func (SDKExporterLogInflight) AttrServerPort(val int) attribute.KeyValue
AttrServerPort returns an optional attribute for the "server.port" semantic convention. It represents the server port number.
SDKExporterLogInflight.Description
func (SDKExporterLogInflight) Description() string
Description returns the semantic convention description of the instrument
SDKExporterLogInflight.Inst
func (m SDKExporterLogInflight) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
SDKExporterLogInflight.Name
func (SDKExporterLogInflight) Name() string
Name returns the semantic convention name of the instrument.
SDKExporterLogInflight.Unit
func (SDKExporterLogInflight) Unit() string
Unit returns the semantic convention unit of the instrument
SDKExporterMetricDataPointExported
type SDKExporterMetricDataPointExported struct {
metric.Int64Counter
}
SDKExporterMetricDataPointExported is an instrument used to record metric values conforming to the "otel.sdk.exporter.metric_data_point.exported" semantic conventions. It represents the number of metric data points for which the export has finished, either successful or failed.
NewSDKExporterMetricDataPointExported
func NewSDKExporterMetricDataPointExported( m metric.Meter, opt ...metric.Int64CounterOption, ) (SDKExporterMetricDataPointExported, error)
NewSDKExporterMetricDataPointExported returns a new SDKExporterMetricDataPointExported instrument.
SDKExporterMetricDataPointExported.Add
func (m SDKExporterMetricDataPointExported) 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.
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 only non-rejected data points count as success. If no rejection reason is available, `rejected` SHOULD be used as value for `error.type`.
SDKExporterMetricDataPointExported.AttrComponentName
func (SDKExporterMetricDataPointExported) AttrComponentName(val string) attribute.KeyValue
AttrComponentName returns an optional attribute for the "otel.component.name" semantic convention. It represents a name uniquely identifying the instance of the OpenTelemetry component within its containing SDK instance.
SDKExporterMetricDataPointExported.AttrComponentType
func (SDKExporterMetricDataPointExported) AttrComponentType(val ComponentTypeAttr) attribute.KeyValue
AttrComponentType returns an optional attribute for the "otel.component.type" semantic convention. It represents a name identifying the type of the OpenTelemetry component.
SDKExporterMetricDataPointExported.AttrErrorType
func (SDKExporterMetricDataPointExported) 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.
SDKExporterMetricDataPointExported.AttrServerAddress
func (SDKExporterMetricDataPointExported) AttrServerAddress(val string) attribute.KeyValue
AttrServerAddress returns an optional attribute for the "server.address" semantic convention. It represents the server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
SDKExporterMetricDataPointExported.AttrServerPort
func (SDKExporterMetricDataPointExported) AttrServerPort(val int) attribute.KeyValue
AttrServerPort returns an optional attribute for the "server.port" semantic convention. It represents the server port number.
SDKExporterMetricDataPointExported.Description
func (SDKExporterMetricDataPointExported) Description() string
Description returns the semantic convention description of the instrument
SDKExporterMetricDataPointExported.Inst
func (m SDKExporterMetricDataPointExported) Inst() metric.Int64Counter
Inst returns the underlying metric instrument.
SDKExporterMetricDataPointExported.Name
func (SDKExporterMetricDataPointExported) Name() string
Name returns the semantic convention name of the instrument.
SDKExporterMetricDataPointExported.Unit
func (SDKExporterMetricDataPointExported) Unit() string
Unit returns the semantic convention unit of the instrument
SDKExporterMetricDataPointInflight
type SDKExporterMetricDataPointInflight struct {
metric.Int64UpDownCounter
}
SDKExporterMetricDataPointInflight is an instrument used to record metric values conforming to the "otel.sdk.exporter.metric_data_point.inflight" semantic conventions. It represents the number of metric data points which were passed to the exporter, but that have not been exported yet (neither successful, nor failed).
NewSDKExporterMetricDataPointInflight
func NewSDKExporterMetricDataPointInflight( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (SDKExporterMetricDataPointInflight, error)
NewSDKExporterMetricDataPointInflight returns a new SDKExporterMetricDataPointInflight instrument.
SDKExporterMetricDataPointInflight.Add
func (m SDKExporterMetricDataPointInflight) 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.
For successful exports, `error.type` MUST NOT be set. For failed exports, `error.type` MUST contain the failure cause.
SDKExporterMetricDataPointInflight.AttrComponentName
func (SDKExporterMetricDataPointInflight) AttrComponentName(val string) attribute.KeyValue
AttrComponentName returns an optional attribute for the "otel.component.name" semantic convention. It represents a name uniquely identifying the instance of the OpenTelemetry component within its containing SDK instance.
SDKExporterMetricDataPointInflight.AttrComponentType
func (SDKExporterMetricDataPointInflight) AttrComponentType(val ComponentTypeAttr) attribute.KeyValue
AttrComponentType returns an optional attribute for the "otel.component.type" semantic convention. It represents a name identifying the type of the OpenTelemetry component.
SDKExporterMetricDataPointInflight.AttrServerAddress
func (SDKExporterMetricDataPointInflight) AttrServerAddress(val string) attribute.KeyValue
AttrServerAddress returns an optional attribute for the "server.address" semantic convention. It represents the server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
SDKExporterMetricDataPointInflight.AttrServerPort
func (SDKExporterMetricDataPointInflight) AttrServerPort(val int) attribute.KeyValue
AttrServerPort returns an optional attribute for the "server.port" semantic convention. It represents the server port number.
SDKExporterMetricDataPointInflight.Description
func (SDKExporterMetricDataPointInflight) Description() string
Description returns the semantic convention description of the instrument
SDKExporterMetricDataPointInflight.Inst
func (m SDKExporterMetricDataPointInflight) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
SDKExporterMetricDataPointInflight.Name
func (SDKExporterMetricDataPointInflight) Name() string
Name returns the semantic convention name of the instrument.
SDKExporterMetricDataPointInflight.Unit
func (SDKExporterMetricDataPointInflight) Unit() string
Unit returns the semantic convention unit of the instrument
SDKExporterOperationDuration
type SDKExporterOperationDuration struct {
metric.Float64Histogram
}
SDKExporterOperationDuration is an instrument used to record metric values conforming to the "otel.sdk.exporter.operation.duration" semantic conventions. It represents the duration of exporting a batch of telemetry records.
NewSDKExporterOperationDuration
func NewSDKExporterOperationDuration( m metric.Meter, opt ...metric.Float64HistogramOption, ) (SDKExporterOperationDuration, error)
NewSDKExporterOperationDuration returns a new SDKExporterOperationDuration instrument.
SDKExporterOperationDuration.AttrComponentName
func (SDKExporterOperationDuration) AttrComponentName(val string) attribute.KeyValue
AttrComponentName returns an optional attribute for the "otel.component.name" semantic convention. It represents a name uniquely identifying the instance of the OpenTelemetry component within its containing SDK instance.
SDKExporterOperationDuration.AttrComponentType
func (SDKExporterOperationDuration) AttrComponentType(val ComponentTypeAttr) attribute.KeyValue
AttrComponentType returns an optional attribute for the "otel.component.type" semantic convention. It represents a name identifying the type of the OpenTelemetry component.
SDKExporterOperationDuration.AttrErrorType
func (SDKExporterOperationDuration) 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.
SDKExporterOperationDuration.AttrHTTPResponseStatusCode
func (SDKExporterOperationDuration) AttrHTTPResponseStatusCode(val int) attribute.KeyValue
AttrHTTPResponseStatusCode returns an optional attribute for the "http.response.status_code" semantic convention. It represents the HTTP status code of the last HTTP request performed in scope of this export call.
SDKExporterOperationDuration.AttrRPCGRPCStatusCode
func (SDKExporterOperationDuration) AttrRPCGRPCStatusCode(val RPCGRPCStatusCodeAttr) attribute.KeyValue
AttrRPCGRPCStatusCode returns an optional attribute for the "rpc.grpc.status_code" semantic convention. It represents the gRPC status code of the last gRPC requests performed in scope of this export call.
SDKExporterOperationDuration.AttrServerAddress
func (SDKExporterOperationDuration) AttrServerAddress(val string) attribute.KeyValue
AttrServerAddress returns an optional attribute for the "server.address" semantic convention. It represents the server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
SDKExporterOperationDuration.AttrServerPort
func (SDKExporterOperationDuration) AttrServerPort(val int) attribute.KeyValue
AttrServerPort returns an optional attribute for the "server.port" semantic convention. It represents the server port number.
SDKExporterOperationDuration.Description
func (SDKExporterOperationDuration) Description() string
Description returns the semantic convention description of the instrument
SDKExporterOperationDuration.Inst
func (m SDKExporterOperationDuration) Inst() metric.Float64Histogram
Inst returns the underlying metric instrument.
SDKExporterOperationDuration.Name
func (SDKExporterOperationDuration) Name() string
Name returns the semantic convention name of the instrument.
SDKExporterOperationDuration.Record
func (m SDKExporterOperationDuration) Record( ctx context.Context, val float64, attrs ...attribute.KeyValue, )
Record records val to the current distribution.
All additional attrs passed are included in the recorded value.
This metric defines successful operations using the full success definitions for http and grpc. Anything else is defined as an unsuccessful operation. For successful operations, `error.type` MUST NOT be set. For unsuccessful export operations, `error.type` MUST contain a relevant failure cause.
SDKExporterOperationDuration.Unit
func (SDKExporterOperationDuration) Unit() string
Unit returns the semantic convention unit of the instrument
SDKExporterSpanExported
type SDKExporterSpanExported struct {
metric.Int64Counter
}
SDKExporterSpanExported is an instrument used to record metric values conforming to the "otel.sdk.exporter.span.exported" semantic conventions. It represents the number of spans for which the export has finished, either successful or failed.
NewSDKExporterSpanExported
func NewSDKExporterSpanExported( m metric.Meter, opt ...metric.Int64CounterOption, ) (SDKExporterSpanExported, error)
NewSDKExporterSpanExported returns a new SDKExporterSpanExported instrument.
SDKExporterSpanExported.Add
func (m SDKExporterSpanExported) 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.
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 as success. If no rejection reason is available, `rejected` SHOULD be used as value for `error.type`.
SDKExporterSpanExported.AttrComponentName
func (SDKExporterSpanExported) AttrComponentName(val string) attribute.KeyValue
AttrComponentName returns an optional attribute for the "otel.component.name" semantic convention. It represents a name uniquely identifying the instance of the OpenTelemetry component within its containing SDK instance.
SDKExporterSpanExported.AttrComponentType
func (SDKExporterSpanExported) AttrComponentType(val ComponentTypeAttr) attribute.KeyValue
AttrComponentType returns an optional attribute for the "otel.component.type" semantic convention. It represents a name identifying the type of the OpenTelemetry component.
SDKExporterSpanExported.AttrErrorType
func (SDKExporterSpanExported) 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.
SDKExporterSpanExported.AttrServerAddress
func (SDKExporterSpanExported) AttrServerAddress(val string) attribute.KeyValue
AttrServerAddress returns an optional attribute for the "server.address" semantic convention. It represents the server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
SDKExporterSpanExported.AttrServerPort
func (SDKExporterSpanExported) AttrServerPort(val int) attribute.KeyValue
AttrServerPort returns an optional attribute for the "server.port" semantic convention. It represents the server port number.
SDKExporterSpanExported.Description
func (SDKExporterSpanExported) Description() string
Description returns the semantic convention description of the instrument
SDKExporterSpanExported.Inst
func (m SDKExporterSpanExported) Inst() metric.Int64Counter
Inst returns the underlying metric instrument.
SDKExporterSpanExported.Name
func (SDKExporterSpanExported) Name() string
Name returns the semantic convention name of the instrument.
SDKExporterSpanExported.Unit
func (SDKExporterSpanExported) Unit() string
Unit returns the semantic convention unit of the instrument
SDKExporterSpanInflight
type SDKExporterSpanInflight struct {
metric.Int64UpDownCounter
}
SDKExporterSpanInflight is an instrument used to record metric values conforming to the "otel.sdk.exporter.span.inflight" semantic conventions. It represents the number of spans which were passed to the exporter, but that have not been exported yet (neither successful, nor failed).
NewSDKExporterSpanInflight
func NewSDKExporterSpanInflight( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (SDKExporterSpanInflight, error)
NewSDKExporterSpanInflight returns a new SDKExporterSpanInflight instrument.
SDKExporterSpanInflight.Add
func (m SDKExporterSpanInflight) 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.
For successful exports, `error.type` MUST NOT be set. For failed exports, `error.type` MUST contain the failure cause.
SDKExporterSpanInflight.AttrComponentName
func (SDKExporterSpanInflight) AttrComponentName(val string) attribute.KeyValue
AttrComponentName returns an optional attribute for the "otel.component.name" semantic convention. It represents a name uniquely identifying the instance of the OpenTelemetry component within its containing SDK instance.
SDKExporterSpanInflight.AttrComponentType
func (SDKExporterSpanInflight) AttrComponentType(val ComponentTypeAttr) attribute.KeyValue
AttrComponentType returns an optional attribute for the "otel.component.type" semantic convention. It represents a name identifying the type of the OpenTelemetry component.
SDKExporterSpanInflight.AttrServerAddress
func (SDKExporterSpanInflight) AttrServerAddress(val string) attribute.KeyValue
AttrServerAddress returns an optional attribute for the "server.address" semantic convention. It represents the server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
SDKExporterSpanInflight.AttrServerPort
func (SDKExporterSpanInflight) AttrServerPort(val int) attribute.KeyValue
AttrServerPort returns an optional attribute for the "server.port" semantic convention. It represents the server port number.
SDKExporterSpanInflight.Description
func (SDKExporterSpanInflight) Description() string
Description returns the semantic convention description of the instrument
SDKExporterSpanInflight.Inst
func (m SDKExporterSpanInflight) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
SDKExporterSpanInflight.Name
func (SDKExporterSpanInflight) Name() string
Name returns the semantic convention name of the instrument.
SDKExporterSpanInflight.Unit
func (SDKExporterSpanInflight) Unit() string
Unit returns the semantic convention unit of the instrument
SDKLogCreated
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 logs submitted to enabled SDK Loggers.
NewSDKLogCreated
func NewSDKLogCreated( m metric.Meter, opt ...metric.Int64CounterOption, ) (SDKLogCreated, error)
NewSDKLogCreated returns a new SDKLogCreated instrument.
SDKLogCreated.Add
func (m SDKLogCreated) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count.
SDKLogCreated.Description
func (SDKLogCreated) Description() string
Description returns the semantic convention description of the instrument
SDKLogCreated.Inst
func (m SDKLogCreated) Inst() metric.Int64Counter
Inst returns the underlying metric instrument.
SDKLogCreated.Name
func (SDKLogCreated) Name() string
Name returns the semantic convention name of the instrument.
SDKLogCreated.Unit
func (SDKLogCreated) Unit() string
Unit returns the semantic convention unit of the instrument
SDKMetricReaderCollectionDuration
type SDKMetricReaderCollectionDuration struct {
metric.Float64Histogram
}
SDKMetricReaderCollectionDuration is an instrument used to record metric values conforming to the "otel.sdk.metric_reader.collection.duration" semantic conventions. It represents the duration of the collect operation of the metric reader.
NewSDKMetricReaderCollectionDuration
func NewSDKMetricReaderCollectionDuration( m metric.Meter, opt ...metric.Float64HistogramOption, ) (SDKMetricReaderCollectionDuration, error)
NewSDKMetricReaderCollectionDuration returns a new SDKMetricReaderCollectionDuration instrument.
SDKMetricReaderCollectionDuration.AttrComponentName
func (SDKMetricReaderCollectionDuration) AttrComponentName(val string) attribute.KeyValue
AttrComponentName returns an optional attribute for the "otel.component.name" semantic convention. It represents a name uniquely identifying the instance of the OpenTelemetry component within its containing SDK instance.
SDKMetricReaderCollectionDuration.AttrComponentType
func (SDKMetricReaderCollectionDuration) AttrComponentType(val ComponentTypeAttr) attribute.KeyValue
AttrComponentType returns an optional attribute for the "otel.component.type" semantic convention. It represents a name identifying the type of the OpenTelemetry component.
SDKMetricReaderCollectionDuration.AttrErrorType
func (SDKMetricReaderCollectionDuration) 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.
SDKMetricReaderCollectionDuration.Description
func (SDKMetricReaderCollectionDuration) Description() string
Description returns the semantic convention description of the instrument
SDKMetricReaderCollectionDuration.Inst
func (m SDKMetricReaderCollectionDuration) Inst() metric.Float64Histogram
Inst returns the underlying metric instrument.
SDKMetricReaderCollectionDuration.Name
func (SDKMetricReaderCollectionDuration) Name() string
Name returns the semantic convention name of the instrument.
SDKMetricReaderCollectionDuration.Record
func (m SDKMetricReaderCollectionDuration) Record( ctx context.Context, val float64, attrs ...attribute.KeyValue, )
Record records val to the current distribution.
All additional attrs passed are included in the recorded value.
For successful collections, `error.type` MUST NOT be set. For failed collections, `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 the failure causes.
SDKMetricReaderCollectionDuration.Unit
func (SDKMetricReaderCollectionDuration) Unit() string
Unit returns the semantic convention unit of the instrument
SDKProcessorLogProcessed
type SDKProcessorLogProcessed struct {
metric.Int64Counter
}
SDKProcessorLogProcessed is an instrument used to record metric values conforming to the "otel.sdk.processor.log.processed" semantic conventions. It represents the number of log records for which the processing has finished, either successful or failed.
NewSDKProcessorLogProcessed
func NewSDKProcessorLogProcessed( m metric.Meter, opt ...metric.Int64CounterOption, ) (SDKProcessorLogProcessed, error)
NewSDKProcessorLogProcessed returns a new SDKProcessorLogProcessed instrument.
SDKProcessorLogProcessed.Add
func (m SDKProcessorLogProcessed) 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.
For successful processing, `error.type` MUST NOT be set. For failed processing, `error.type` MUST contain the failure cause. For the SDK Simple and Batching Log Record Processor a log record is considered to be processed already when it has been submitted to the exporter, not when the corresponding export call has finished.
SDKProcessorLogProcessed.AttrComponentName
func (SDKProcessorLogProcessed) AttrComponentName(val string) attribute.KeyValue
AttrComponentName returns an optional attribute for the "otel.component.name" semantic convention. It represents a name uniquely identifying the instance of the OpenTelemetry component within its containing SDK instance.
SDKProcessorLogProcessed.AttrComponentType
func (SDKProcessorLogProcessed) AttrComponentType(val ComponentTypeAttr) attribute.KeyValue
AttrComponentType returns an optional attribute for the "otel.component.type" semantic convention. It represents a name identifying the type of the OpenTelemetry component.
SDKProcessorLogProcessed.AttrErrorType
func (SDKProcessorLogProcessed) AttrErrorType(val ErrorTypeAttr) attribute.KeyValue
AttrErrorType returns an optional attribute for the "error.type" semantic convention. It represents a low-cardinality description of the failure reason. SDK Batching Log Record Processors MUST use `queue_full` for log records dropped due to a full queue.
SDKProcessorLogProcessed.Description
func (SDKProcessorLogProcessed) Description() string
Description returns the semantic convention description of the instrument
SDKProcessorLogProcessed.Inst
func (m SDKProcessorLogProcessed) Inst() metric.Int64Counter
Inst returns the underlying metric instrument.
SDKProcessorLogProcessed.Name
func (SDKProcessorLogProcessed) Name() string
Name returns the semantic convention name of the instrument.
SDKProcessorLogProcessed.Unit
func (SDKProcessorLogProcessed) Unit() string
Unit returns the semantic convention unit of the instrument
SDKProcessorLogQueueCapacity
type SDKProcessorLogQueueCapacity struct {
metric.Int64UpDownCounter
}
SDKProcessorLogQueueCapacity is an instrument used to record metric values conforming to the "otel.sdk.processor.log.queue.capacity" semantic conventions. It represents the maximum number of log records the queue of a given instance of an SDK Log Record processor can hold.
NewSDKProcessorLogQueueCapacity
func NewSDKProcessorLogQueueCapacity( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (SDKProcessorLogQueueCapacity, error)
NewSDKProcessorLogQueueCapacity returns a new SDKProcessorLogQueueCapacity instrument.
SDKProcessorLogQueueCapacity.Add
func (m SDKProcessorLogQueueCapacity) 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.
Only applies to Log Record processors which use a queue, e.g. the SDK Batching Log Record Processor.
SDKProcessorLogQueueCapacity.AttrComponentName
func (SDKProcessorLogQueueCapacity) AttrComponentName(val string) attribute.KeyValue
AttrComponentName returns an optional attribute for the "otel.component.name" semantic convention. It represents a name uniquely identifying the instance of the OpenTelemetry component within its containing SDK instance.
SDKProcessorLogQueueCapacity.AttrComponentType
func (SDKProcessorLogQueueCapacity) AttrComponentType(val ComponentTypeAttr) attribute.KeyValue
AttrComponentType returns an optional attribute for the "otel.component.type" semantic convention. It represents a name identifying the type of the OpenTelemetry component.
SDKProcessorLogQueueCapacity.Description
func (SDKProcessorLogQueueCapacity) Description() string
Description returns the semantic convention description of the instrument
SDKProcessorLogQueueCapacity.Inst
func (m SDKProcessorLogQueueCapacity) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
SDKProcessorLogQueueCapacity.Name
func (SDKProcessorLogQueueCapacity) Name() string
Name returns the semantic convention name of the instrument.
SDKProcessorLogQueueCapacity.Unit
func (SDKProcessorLogQueueCapacity) Unit() string
Unit returns the semantic convention unit of the instrument
SDKProcessorLogQueueSize
type SDKProcessorLogQueueSize struct {
metric.Int64UpDownCounter
}
SDKProcessorLogQueueSize is an instrument used to record metric values conforming to the "otel.sdk.processor.log.queue.size" semantic conventions. It represents the number of log records in the queue of a given instance of an SDK log processor.
NewSDKProcessorLogQueueSize
func NewSDKProcessorLogQueueSize( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (SDKProcessorLogQueueSize, error)
NewSDKProcessorLogQueueSize returns a new SDKProcessorLogQueueSize instrument.
SDKProcessorLogQueueSize.Add
func (m SDKProcessorLogQueueSize) 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.
Only applies to log record processors which use a queue, e.g. the SDK Batching Log Record Processor.
SDKProcessorLogQueueSize.AttrComponentName
func (SDKProcessorLogQueueSize) AttrComponentName(val string) attribute.KeyValue
AttrComponentName returns an optional attribute for the "otel.component.name" semantic convention. It represents a name uniquely identifying the instance of the OpenTelemetry component within its containing SDK instance.
SDKProcessorLogQueueSize.AttrComponentType
func (SDKProcessorLogQueueSize) AttrComponentType(val ComponentTypeAttr) attribute.KeyValue
AttrComponentType returns an optional attribute for the "otel.component.type" semantic convention. It represents a name identifying the type of the OpenTelemetry component.
SDKProcessorLogQueueSize.Description
func (SDKProcessorLogQueueSize) Description() string
Description returns the semantic convention description of the instrument
SDKProcessorLogQueueSize.Inst
func (m SDKProcessorLogQueueSize) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
SDKProcessorLogQueueSize.Name
func (SDKProcessorLogQueueSize) Name() string
Name returns the semantic convention name of the instrument.
SDKProcessorLogQueueSize.Unit
func (SDKProcessorLogQueueSize) Unit() string
Unit returns the semantic convention unit of the instrument
SDKProcessorSpanProcessed
type SDKProcessorSpanProcessed struct {
metric.Int64Counter
}
SDKProcessorSpanProcessed is an instrument used to record metric values conforming to the "otel.sdk.processor.span.processed" semantic conventions. It represents the number of spans for which the processing has finished, either successful or failed.
NewSDKProcessorSpanProcessed
func NewSDKProcessorSpanProcessed( m metric.Meter, opt ...metric.Int64CounterOption, ) (SDKProcessorSpanProcessed, error)
NewSDKProcessorSpanProcessed returns a new SDKProcessorSpanProcessed instrument.
SDKProcessorSpanProcessed.Add
func (m SDKProcessorSpanProcessed) 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.
For successful processing, `error.type` MUST NOT be set. For failed processing, `error.type` MUST contain the failure cause. For the SDK Simple and Batching Span Processor a span is considered to be processed already when it has been submitted to the exporter, not when the corresponding export call has finished.
SDKProcessorSpanProcessed.AttrComponentName
func (SDKProcessorSpanProcessed) AttrComponentName(val string) attribute.KeyValue
AttrComponentName returns an optional attribute for the "otel.component.name" semantic convention. It represents a name uniquely identifying the instance of the OpenTelemetry component within its containing SDK instance.
SDKProcessorSpanProcessed.AttrComponentType
func (SDKProcessorSpanProcessed) AttrComponentType(val ComponentTypeAttr) attribute.KeyValue
AttrComponentType returns an optional attribute for the "otel.component.type" semantic convention. It represents a name identifying the type of the OpenTelemetry component.
SDKProcessorSpanProcessed.AttrErrorType
func (SDKProcessorSpanProcessed) AttrErrorType(val ErrorTypeAttr) attribute.KeyValue
AttrErrorType returns an optional attribute for the "error.type" semantic convention. It represents a low-cardinality description of the failure reason. SDK Batching Span Processors MUST use `queue_full` for spans dropped due to a full queue.
SDKProcessorSpanProcessed.Description
func (SDKProcessorSpanProcessed) Description() string
Description returns the semantic convention description of the instrument
SDKProcessorSpanProcessed.Inst
func (m SDKProcessorSpanProcessed) Inst() metric.Int64Counter
Inst returns the underlying metric instrument.
SDKProcessorSpanProcessed.Name
func (SDKProcessorSpanProcessed) Name() string
Name returns the semantic convention name of the instrument.
SDKProcessorSpanProcessed.Unit
func (SDKProcessorSpanProcessed) Unit() string
Unit returns the semantic convention unit of the instrument
SDKProcessorSpanQueueCapacity
type SDKProcessorSpanQueueCapacity struct {
metric.Int64UpDownCounter
}
SDKProcessorSpanQueueCapacity is an instrument used to record metric values conforming to the "otel.sdk.processor.span.queue.capacity" semantic conventions. It represents the maximum number of spans the queue of a given instance of an SDK span processor can hold.
NewSDKProcessorSpanQueueCapacity
func NewSDKProcessorSpanQueueCapacity( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (SDKProcessorSpanQueueCapacity, error)
NewSDKProcessorSpanQueueCapacity returns a new SDKProcessorSpanQueueCapacity instrument.
SDKProcessorSpanQueueCapacity.Add
func (m SDKProcessorSpanQueueCapacity) 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.
Only applies to span processors which use a queue, e.g. the SDK Batching Span Processor.
SDKProcessorSpanQueueCapacity.AttrComponentName
func (SDKProcessorSpanQueueCapacity) AttrComponentName(val string) attribute.KeyValue
AttrComponentName returns an optional attribute for the "otel.component.name" semantic convention. It represents a name uniquely identifying the instance of the OpenTelemetry component within its containing SDK instance.
SDKProcessorSpanQueueCapacity.AttrComponentType
func (SDKProcessorSpanQueueCapacity) AttrComponentType(val ComponentTypeAttr) attribute.KeyValue
AttrComponentType returns an optional attribute for the "otel.component.type" semantic convention. It represents a name identifying the type of the OpenTelemetry component.
SDKProcessorSpanQueueCapacity.Description
func (SDKProcessorSpanQueueCapacity) Description() string
Description returns the semantic convention description of the instrument
SDKProcessorSpanQueueCapacity.Inst
func (m SDKProcessorSpanQueueCapacity) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
SDKProcessorSpanQueueCapacity.Name
func (SDKProcessorSpanQueueCapacity) Name() string
Name returns the semantic convention name of the instrument.
SDKProcessorSpanQueueCapacity.Unit
func (SDKProcessorSpanQueueCapacity) Unit() string
Unit returns the semantic convention unit of the instrument
SDKProcessorSpanQueueSize
type SDKProcessorSpanQueueSize struct {
metric.Int64UpDownCounter
}
SDKProcessorSpanQueueSize is an instrument used to record metric values conforming 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 SDK span processor.
NewSDKProcessorSpanQueueSize
func NewSDKProcessorSpanQueueSize( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (SDKProcessorSpanQueueSize, error)
NewSDKProcessorSpanQueueSize returns a new SDKProcessorSpanQueueSize instrument.
SDKProcessorSpanQueueSize.Add
func (m SDKProcessorSpanQueueSize) 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.
Only applies to span processors which use a queue, e.g. the SDK Batching Span Processor.
SDKProcessorSpanQueueSize.AttrComponentName
func (SDKProcessorSpanQueueSize) AttrComponentName(val string) attribute.KeyValue
AttrComponentName returns an optional attribute for the "otel.component.name" semantic convention. It represents a name uniquely identifying the instance of the OpenTelemetry component within its containing SDK instance.
SDKProcessorSpanQueueSize.AttrComponentType
func (SDKProcessorSpanQueueSize) AttrComponentType(val ComponentTypeAttr) attribute.KeyValue
AttrComponentType returns an optional attribute for the "otel.component.type" semantic convention. It represents a name identifying the type of the OpenTelemetry component.
SDKProcessorSpanQueueSize.Description
func (SDKProcessorSpanQueueSize) Description() string
Description returns the semantic convention description of the instrument
SDKProcessorSpanQueueSize.Inst
func (m SDKProcessorSpanQueueSize) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
SDKProcessorSpanQueueSize.Name
func (SDKProcessorSpanQueueSize) Name() string
Name returns the semantic convention name of the instrument.
SDKProcessorSpanQueueSize.Unit
func (SDKProcessorSpanQueueSize) Unit() string
Unit returns the semantic convention unit of the instrument
SDKSpanEnded
type SDKSpanEnded struct {
metric.Int64Counter
}
SDKSpanEnded is an instrument used to record metric values conforming to the "otel.sdk.span.ended" semantic conventions. It represents the number of created spans for which the end operation was called.
NewSDKSpanEnded
func NewSDKSpanEnded( m metric.Meter, opt ...metric.Int64CounterOption, ) (SDKSpanEnded, error)
NewSDKSpanEnded returns a new SDKSpanEnded instrument.
SDKSpanEnded.Add
func (m SDKSpanEnded) 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.
For spans with `recording=true`: Implementations MUST record both `otel.sdk.span.live` and `otel.sdk.span.ended`. For spans with `recording=false`: If implementations decide to record this metric, they MUST also record `otel.sdk.span.live`.
SDKSpanEnded.AttrSpanSamplingResult
func (SDKSpanEnded) AttrSpanSamplingResult(val SpanSamplingResultAttr) attribute.KeyValue
AttrSpanSamplingResult returns an optional attribute for the "otel.span.sampling_result" semantic convention. It represents the result value of the sampler for this span.
SDKSpanEnded.Description
func (SDKSpanEnded) Description() string
Description returns the semantic convention description of the instrument
SDKSpanEnded.Inst
func (m SDKSpanEnded) Inst() metric.Int64Counter
Inst returns the underlying metric instrument.
SDKSpanEnded.Name
func (SDKSpanEnded) Name() string
Name returns the semantic convention name of the instrument.
SDKSpanEnded.Unit
func (SDKSpanEnded) Unit() string
Unit returns the semantic convention unit of the instrument
SDKSpanLive
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 created spans for which the end operation has not been called yet.
NewSDKSpanLive
func NewSDKSpanLive( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (SDKSpanLive, error)
NewSDKSpanLive returns a new SDKSpanLive instrument.
SDKSpanLive.Add
func (m SDKSpanLive) 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.
For spans with `recording=true`: Implementations MUST record both `otel.sdk.span.live` and `otel.sdk.span.ended`. For spans with `recording=false`: If implementations decide to record this metric, they MUST also record `otel.sdk.span.ended`.
SDKSpanLive.AttrSpanSamplingResult
func (SDKSpanLive) AttrSpanSamplingResult(val SpanSamplingResultAttr) attribute.KeyValue
AttrSpanSamplingResult returns an optional attribute for the "otel.span.sampling_result" semantic convention. It represents the result value of the sampler for this span.
SDKSpanLive.Description
func (SDKSpanLive) Description() string
Description returns the semantic convention description of the instrument
SDKSpanLive.Inst
func (m SDKSpanLive) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
SDKSpanLive.Name
func (SDKSpanLive) Name() string
Name returns the semantic convention name of the instrument.
SDKSpanLive.Unit
func (SDKSpanLive) Unit() string
Unit returns the semantic convention unit of the instrument
SpanSamplingResultAttr
type SpanSamplingResultAttr string
SpanSamplingResultAttr is an attribute conforming to the otel.span.sampling_result semantic conventions. It represents the result value of the sampler for this span.
SpanSamplingResultDrop (3 declarations)
var ( // SpanSamplingResultDrop is the span is not sampled and not recording. SpanSamplingResultDrop SpanSamplingResultAttr = "DROP" // SpanSamplingResultRecordOnly is the span is not sampled, but recording. SpanSamplingResultRecordOnly SpanSamplingResultAttr = "RECORD_ONLY" // SpanSamplingResultRecordAndSample is the span is sampled and recording. SpanSamplingResultRecordAndSample SpanSamplingResultAttr = "RECORD_AND_SAMPLE" )