Documentation
¶
Index ¶
- Constants
- func FinalizeDynamoDBSpan(req *request.Request)
- func FinalizeS3Span(req *request.Request)
- func FinalizeSNSSpan(req *request.Request)
- func FinalizeSQSSpan(req *request.Request)
- func InstrumentSession(sess *session.Session, sensor *instana.Sensor)
- func SNSMessageAttributesCarrier(attrs map[string]*sns.MessageAttributeValue) messageAttributesCarrier
- func SQSMessageAttributesCarrier(attrs map[string]*sqs.MessageAttributeValue) messageAttributesCarrier
- func SpanContextFromSQSMessage(msg *sqs.Message, sensor *instana.Sensor) (opentracing.SpanContext, bool)
- func StartDynamoDBSpan(req *request.Request, sensor *instana.Sensor)
- func StartS3Span(req *request.Request, sensor *instana.Sensor)
- func StartSNSSpan(req *request.Request, sensor *instana.Sensor)
- func StartSQSSpan(req *request.Request, sensor *instana.Sensor)
- func TraceSQSMessage(msg *sqs.Message, sensor *instana.Sensor) opentracing.Span
Constants ¶
const ( // FieldT is the trace ID message attribute key FieldT = "X_INSTANA_T" // FieldS is the span ID message attribute key FieldS = "X_INSTANA_S" // FieldL is the trace level message attribute key FieldL = "X_INSTANA_L" )
Variables ¶
This section is empty.
Functions ¶
func FinalizeDynamoDBSpan ¶
FinalizeDynamoDBSpan retrieves tags from completed request.Request and adds them to the span
func FinalizeS3Span ¶
FinalizeS3Span retrieves tags from completed request.Request and adds them to the span
func FinalizeSNSSpan ¶
FinalizeSNSSpan retrieves tags from completed request.Request and adds them to the span
func FinalizeSQSSpan ¶
FinalizeSQSSpan retrieves tags from completed request.Request and adds them to the span
func InstrumentSession ¶
InstrumentSession instruments github.com/aws/aws-sdk-go/aws/session.Session by injecting handlers to create and finalize Instana spans
func SNSMessageAttributesCarrier ¶
func SNSMessageAttributesCarrier(attrs map[string]*sns.MessageAttributeValue) messageAttributesCarrier
SNSMessageAttributesCarrier creates a new trace context carrier suitable for (opentracing.Tracer).Inject() that uses SNS message attributes as a storage
func SQSMessageAttributesCarrier ¶
func SQSMessageAttributesCarrier(attrs map[string]*sqs.MessageAttributeValue) messageAttributesCarrier
SQSMessageAttributesCarrier creates a new trace context carrier suitable for (opentracing.Tracer).Inject() that uses SQS message attributes as a storage
func SpanContextFromSQSMessage ¶
func SpanContextFromSQSMessage(msg *sqs.Message, sensor *instana.Sensor) (opentracing.SpanContext, bool)
SpanContextFromSQSMessage returns the trace context from an SQS message
func StartDynamoDBSpan ¶
StartDynamoDBSpan initiates a new span from an AWS DynamoDB request and injects it into the request.Request context
func StartS3Span ¶
StartS3Span initiates a new span from an AWS S3 request and injects it into the request.Request context
func StartSNSSpan ¶
StartSNSSpan initiates a new span from an AWS SNS request and injects it into the request.Request context
func StartSQSSpan ¶
StartSQSSpan initiates a new span from an AWS SQS request and injects it into the request.Request context
func TraceSQSMessage ¶
TraceSQSMessage creates an returns an entry span for an SQS message. The context of this span is injected into message attributes. This context can than be retrieved with instaawssdk.SpanContextFromSQSMessage() and used in the message handler method to continue the trace.
Types ¶
This section is empty.