package
1.20240719.1
Repository: https://github.com/blend/go-sdk.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package crontrace contains tracer helpers for cron, our job management service.
Package dbtrace contains db tracing helpers.
Package grpctrace provides tracing helpers for grpc servers and clients.
Package httptrace provides helpers for integrating http servers into distributed tracing results.
Package oauthtrace provides helpers for integrating OAuth calls into distributed tracing results.
Package r2trace contains helpers for integrating open tracing into calls made with r2.
No description provided by the author
Package vaulttrace contains helpers for integrating open tracing into calls made to vault with the go-sdk/secrets package.
Package webtrace implements shims for reporting tracing spans from web applications.

# Functions

Background returns a new `context.Background()` with the parent span from a given context.
GetTracer gets a tracer from a context.
GetTracingSpanFromContext returns a tracing span from a given context.
SpanError injects error metadata into a span.
StartSpanFromContext creates a new span from a given context.
TagMeasured returns an opentracing tag to indicate the span should be measured.
WithTraceAnnotations extracts trace span details as logger annotations onto a context.
WithTracer adds a tracer to a context.

# Constants

LoggerAnnotations.
LoggerAnnotations.
LoggerLabels.
OperationDial is a network jdial operation.
OperationGRPCClientStreaming is an rpc operation.
OperationGRPCClientUnary is an rpc operation.
OperationGRPCServerStreaming is an rpc operation.
OperationGRPCClientUnary is an rpc operation.
OperationHTTPRender is the operation name for rendering a server side view.
OperationHTTPRequest is the http request tracing operation name incoming requests.
OperationHTTPRequestOutgoing is the http request tracing operation name for outgoing requests.
Operations are actions represented by spans.
OperationJob is a job operation.
OperationKafkaPublish is a publish to a kafka topic.
OperationRedisCommand is a redis operation.
OperationDBPing is the db ping tracing operation.
OperationDBPrepare is the db prepare tracing operation.
OperationDBQuery is the db query tracing operation.
OperationVaultAPI is a call to the vault API.
PriorityAutoKeep informs the backend that a trace should be kept and not stored.
PriorityAutoReject informs the backend that a trace should be rejected and not stored.
PriorityUserKeep informs the backend that a trace should be kept and not stored.
PriorityUserReject informs the backend that a trace should be rejected and not stored.
SpanTypeCassandra marks a span as a Cassandra operation.
SpanTypeElasticSearch marks a span as an ElasticSearch operation.
SpanTypeHTTP marks a span as an HTTP client request.
SpanTypeJob is a span type used by cron jobs.
SpanTypeKafka is a span type used by kafka services.
SpanTypeMemcached marks a span as a memcached operation.
SpanTypeMongoDB marks a span as a MongoDB operation.
SpanTypeNetwork is a span type used by network overhead tracking.
SpanTypeRedis marks a span as a Redis operation.
SpanTypeRPC is a span type used by grpc services.
SpanTypeSQL marks a span as an SQL operation.
SpanTypeVault is a span type used by go-sdk/secrets calls to vault.
SpanTypeWeb marks a span as an HTTP server request.
TagKeyCtx is the ctx prefix used in DD APM trace metadata.
TagKeyDBApplication is the application that uses a database.
TagKeyDBRowsAffected is the number of rows affected.
TagKeyEnvironment is the environment (web, dev, etc.).
TagKeyError is the error tag key.
TagKeyErrorDetails is the error details tag key.
TagKeyErrorMessage is the error message tag key.
TagKeyErrorStack is the error stack tag key.
TagKeyErrorType is the error type tag key.
TagKeyGRPCAuthority is the grpc authority.
TagKeyGRPCCallingConvention is the grpc calling convention (i.e.
TagKeyGRPCCode is the grpc result code.
TagKeyGRPCContentType is the grpc content type.
TagKeyGRPCMethod is the grpc method.
TagKeyGRPCRemoteAddr is the grpc remote addr (i.e.
TagKeyGRPCRole is the grpc role (i.e.
TagKeyGRPCUserAgent is the grpc user-agent.
TagKeyHTTPCode is the result status code.
TagKeyHTTPMethod is the verb on the request.
TagKeyHTTPURL is the url of the request (typically the raw path).
TagKeyJobName is the job name.
TagKeyKafkaOffset is the kafka topic partition offset.
TagKeyKafkaPartition is the kafka topic partition.
TagKeyKafkaTopic is the kafka topic.
TagKeyMeaured indicates a span should also emit metrics.
TagKeyOAuthUsername defines the oauth Username name for the Span.
TagKeyPID is the pid of the traced process.
TagKeyResourceName defines the Resource name for the Span.
TagKeyServiceName defines the Service name for this Span.
TagKeySpanType defines the Span type (web, db, cache).
TagKeyTargetHost sets the target host address.
TagKeyTargetPort sets the target host port.
TagSecretsMethod is the http method being hit on the vault API.
TagSecretsOperation is the operation being performed in the secrets API.

# Interfaces

SpanIDProvider is a tracing span context that has a SpanID getter.
TraceIDProvider is a tracing span context that has a TraceID getter.