awslambda

package module
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package awslambda provides some utilities to create spans that conforms to semantic convnetions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartTraceFromSQSEvent

func StartTraceFromSQSEvent(ctx context.Context, tracer trace.Tracer, queueName string, ev events.SQSEvent) (context.Context, trace.Span)

StartTraceFromSQSEvent creates a new span that receives messages from SQS queue.

It conforms to SQS Event convention.

func StartTraceFromSQSMessage

func StartTraceFromSQSMessage(ctx context.Context, tracer trace.Tracer, queueName string, msg events.SQSMessage) (context.Context, trace.Span)

StartTraceFromSQSMessage creates a new span that processes a message from SQS queue.

It conforms to SQS Message convention.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL