Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nhulston committed Dec 13, 2024
1 parent bac9a7a commit f804396
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/serverless/spanpointers/span_pointers.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.

// Package spanpointers provides a helper functions for span pointers
package spanpointers

import (
Expand All @@ -24,6 +30,8 @@ func generateSpanPointerHash(components []string) string {
return hex.EncodeToString(sum[:])[:32]
}

// GetSpanPointersFromS3Event calculates span pointer attributes to uniquely identify
// S3 event records. These attributes will later be used to create the _dd.span_links JSON object.
func GetSpanPointersFromS3Event(event events.S3Event) []SpanPointer {
var pointers []SpanPointer
for _, record := range event.Records {
Expand Down

0 comments on commit f804396

Please sign in to comment.