Documentation ¶
Index ¶
- Constants
- func MakeDependencySubsegmentForLocalRootDependencySpan(span ptrace.Span, resource pcommon.Resource, indexedAttrs []string, ...) (*awsxray.Segment, error)
- func MakeDocumentFromSegment(segment *awsxray.Segment) (string, error)
- func MakeNonLocalRootSegment(span ptrace.Span, resource pcommon.Resource, indexedAttrs []string, ...) ([]*awsxray.Segment, error)
- func MakeSegment(span ptrace.Span, resource pcommon.Resource, indexedAttrs []string, ...) (*awsxray.Segment, error)
- func MakeSegmentDocumentString(span ptrace.Span, resource pcommon.Resource, indexedAttrs []string, ...) (string, error)
- func MakeSegmentDocuments(span ptrace.Span, resource pcommon.Resource, indexedAttrs []string, ...) ([]string, error)
- func MakeSegmentsFromSpan(span ptrace.Span, resource pcommon.Resource, indexedAttrs []string, ...) ([]*awsxray.Segment, error)
- func MakeServiceSegmentAndDependencySubsegment(span ptrace.Span, resource pcommon.Resource, indexedAttrs []string, ...) ([]*awsxray.Segment, error)
- func MakeServiceSegmentForLocalRootDependencySpan(span ptrace.Span, resource pcommon.Resource, indexedAttrs []string, ...) (*awsxray.Segment, error)
- func MakeServiceSegmentForLocalRootSpanWithoutDependency(span ptrace.Span, resource pcommon.Resource, indexedAttrs []string, ...) ([]*awsxray.Segment, error)
Constants ¶
View Source
const ( AttributeHTTPRequestMethod = "http.request.method" AttributeHTTPResponseStatusCode = "http.response.status_code" AttributeServerAddress = "server.address" AttributeServerPort = "server.port" AttributeNetworkPeerAddress = "network.peer.address" AttributeClientAddress = "client.address" AttributeURLScheme = "url.scheme" AttributeURLFull = "url.full" AttributeURLPath = "url.path" AttributeUserAgentOriginal = "user_agent.original" )
View Source
const ( OriginEC2 = "AWS::EC2::Instance" OriginECS = "AWS::ECS::Container" OriginECSEC2 = "AWS::ECS::EC2" OriginECSFargate = "AWS::ECS::Fargate" OriginEB = "AWS::ElasticBeanstalk::Environment" OriginEKS = "AWS::EKS::Container" OriginAppRunner = "AWS::AppRunner::Service" )
AWS X-Ray acceptable values for origin field.
View Source
const AwsIndividualHTTPErrorCodeAttr = "http.response.status_code"
View Source
const AwsIndividualHTTPErrorEventType = "aws.http.error.event"
View Source
const AwsIndividualHTTPErrorMsgAttr = "aws.http.error_message"
View Source
const AwsIndividualHTTPEventName = "HTTP request failure"
View Source
const ExceptionEventName = "exception"
ExceptionEventName the name of the exception event. TODO: Remove this when collector defines this semantic convention.
Variables ¶
This section is empty.
Functions ¶
func MakeDependencySubsegmentForLocalRootDependencySpan ¶ added in v0.102.0
func MakeDocumentFromSegment ¶ added in v0.102.0
MakeDocumentFromSegment converts a segment into a JSON document
func MakeNonLocalRootSegment ¶ added in v0.102.0
func MakeSegment ¶
func MakeSegment(span ptrace.Span, resource pcommon.Resource, indexedAttrs []string, indexAllAttrs bool, logGroupNames []string, skipTimestampValidation bool) (*awsxray.Segment, error)
MakeSegment converts an OpenTelemetry Span to an X-Ray Segment
func MakeSegmentDocumentString ¶
func MakeSegmentDocumentString(span ptrace.Span, resource pcommon.Resource, indexedAttrs []string, indexAllAttrs bool, logGroupNames []string, skipTimestampValidation bool) (string, error)
MakeSegmentDocumentString converts an OpenTelemetry Span to an X-Ray Segment and then serializes to JSON MakeSegmentDocumentString will be deprecated in the future
func MakeSegmentDocuments ¶ added in v0.102.0
func MakeSegmentDocuments(span ptrace.Span, resource pcommon.Resource, indexedAttrs []string, indexAllAttrs bool, logGroupNames []string, skipTimestampValidation bool) ([]string, error)
MakeSegmentDocuments converts spans to json documents
func MakeSegmentsFromSpan ¶ added in v0.102.0
func MakeSegmentsFromSpan(span ptrace.Span, resource pcommon.Resource, indexedAttrs []string, indexAllAttrs bool, logGroupNames []string, skipTimestampValidation bool) ([]*awsxray.Segment, error)
MakeSegmentsFromSpan creates one or more segments from a span
func MakeServiceSegmentAndDependencySubsegment ¶ added in v0.102.0
func MakeServiceSegmentForLocalRootDependencySpan ¶ added in v0.102.0
func MakeServiceSegmentForLocalRootSpanWithoutDependency ¶ added in v0.102.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.