From f80439687609b5d92f167e7c0481b49793a513fe Mon Sep 17 00:00:00 2001 From: Nicholas Hulston Date: Fri, 13 Dec 2024 13:59:49 -0500 Subject: [PATCH] lint --- pkg/serverless/spanpointers/span_pointers.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/serverless/spanpointers/span_pointers.go b/pkg/serverless/spanpointers/span_pointers.go index 1aa315538e3b8..f342bfad3d2fb 100644 --- a/pkg/serverless/spanpointers/span_pointers.go +++ b/pkg/serverless/spanpointers/span_pointers.go @@ -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 ( @@ -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 {