Skip to content

Commit

Permalink
* Mark integrations imported
Browse files Browse the repository at this point in the history
* Add copyright comments
  • Loading branch information
nhulston committed Oct 8, 2024
1 parent c439cbd commit 7237e7f
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 0 deletions.
12 changes: 12 additions & 0 deletions contrib/aws/aws-sdk-go-v2/aws/eventbridge/eventbridge.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// 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 Datadog, Inc.

package eventbridge

import (
Expand All @@ -9,17 +14,24 @@ import (
"github.com/aws/smithy-go/middleware"
"gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer"
"gopkg.in/DataDog/dd-trace-go.v1/internal/log"
"gopkg.in/DataDog/dd-trace-go.v1/internal/telemetry"
"strconv"
"time"
)

const (
componentName = "aws/aws-sdk-go-v2/aws/eventbridge"
datadogKey = "_datadog"
startTimeKey = "x-datadog-start-time"
resourceNameKey = "x-datadog-resource-name"
maxSizeBytes = 256 * 1024 // 256 KB
)

func init() {
telemetry.LoadIntegration(componentName)
tracer.MarkIntegrationImported("github.com/aws/aws-sdk-go-v2")
}

type messageCarrier map[string]string

func (carrier messageCarrier) Set(key, val string) {
Expand Down
5 changes: 5 additions & 0 deletions contrib/aws/aws-sdk-go-v2/aws/eventbridge/eventbridge_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// 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 Datadog, Inc.

package eventbridge

import (
Expand Down
12 changes: 12 additions & 0 deletions contrib/aws/aws-sdk-go-v2/aws/sns/sns.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// 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 Datadog, Inc.

package sns

import (
Expand All @@ -9,13 +14,20 @@ import (
"github.com/aws/smithy-go/middleware"
"gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer"
"gopkg.in/DataDog/dd-trace-go.v1/internal/log"
"gopkg.in/DataDog/dd-trace-go.v1/internal/telemetry"
)

const (
componentName = "aws/aws-sdk-go-v2/aws/sns"
datadogKey = "_datadog"
maxMessageAttributes = 10
)

func init() {
telemetry.LoadIntegration(componentName)
tracer.MarkIntegrationImported("github.com/aws/aws-sdk-go-v2")
}

type messageCarrier map[string]string

func (carrier messageCarrier) Set(key, val string) {
Expand Down
5 changes: 5 additions & 0 deletions contrib/aws/aws-sdk-go-v2/aws/sns/sns_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// 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 Datadog, Inc.

package sns

import (
Expand Down
12 changes: 12 additions & 0 deletions contrib/aws/aws-sdk-go-v2/aws/sqs/sqs.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// 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 Datadog, Inc.

package sqs

import (
Expand All @@ -9,13 +14,20 @@ import (
"github.com/aws/smithy-go/middleware"
"gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer"
"gopkg.in/DataDog/dd-trace-go.v1/internal/log"
"gopkg.in/DataDog/dd-trace-go.v1/internal/telemetry"
)

const (
componentName = "aws/aws-sdk-go-v2/aws/sqs"
datadogKey = "_datadog"
maxMessageAttributes = 10
)

func init() {
telemetry.LoadIntegration(componentName)
tracer.MarkIntegrationImported("github.com/aws/aws-sdk-go-v2")
}

type messageCarrier map[string]string

func (carrier messageCarrier) Set(key, val string) {
Expand Down
5 changes: 5 additions & 0 deletions contrib/aws/aws-sdk-go-v2/aws/sqs/sqs_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// 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 Datadog, Inc.

package sqs

import (
Expand Down

0 comments on commit 7237e7f

Please sign in to comment.