Skip to content

Commit

Permalink
[exporter/datadog] Use v0.3.0 of opentelemetry-mapping-go for logs (o…
Browse files Browse the repository at this point in the history
…pen-telemetry#23137)

translator.go was copied into the DataDog/opentelemetry-mapping-go repo in a previous PR, which is now available in the v0.3.0 release of that repo. Update the dependency version and replace imports of translator.go with the opentelemetry-mapping-go equivalent.
---------

Co-authored-by: Yang Song <[email protected]>
  • Loading branch information
IbraheemA and songy23 committed Jun 6, 2023
1 parent 4a0ea8e commit b088ba8
Show file tree
Hide file tree
Showing 13 changed files with 88 additions and 757 deletions.
20 changes: 20 additions & 0 deletions .chloggen/otel-529-use-mapping-module.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Use this changelog template to create an entry for release notes.
# If your change doesn't affect end users, such as a test fix or a tooling change,
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: enhancement

# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
component: exporter/datadog

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Upgrade opentelemetry-mapping-go to v0.3.0 and use pkg/otlp/logs for logs translation

# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
issues: [23137]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext:
9 changes: 5 additions & 4 deletions cmd/configschema/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ require (
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor v0.8.0 // indirect
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 // indirect
github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.2.3 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/metrics v0.2.3 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.3.0 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/metrics v0.3.0 // indirect
github.com/gocql/gocql v1.3.1 // indirect
github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/alibabacloudlogserviceexporter v0.78.0 // indirect
Expand Down Expand Up @@ -257,11 +257,12 @@ require (
github.com/DataDog/datadog-agent/pkg/util/log v0.46.0-rc.1 // indirect
github.com/DataDog/datadog-agent/pkg/util/pointer v0.46.0-rc.1 // indirect
github.com/DataDog/datadog-agent/pkg/util/scrubber v0.46.0-rc.1 // indirect
github.com/DataDog/datadog-api-client-go/v2 v2.12.0 // indirect
github.com/DataDog/datadog-api-client-go/v2 v2.13.0 // indirect
github.com/DataDog/datadog-go/v5 v5.1.1 // indirect
github.com/DataDog/go-tuf v0.3.0--fix-localmeta-fork // indirect
github.com/DataDog/gohai v0.0.0-20220718130825-1776f9beb9cc // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/quantile v0.2.3 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/logs v0.3.0 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/quantile v0.3.0 // indirect
github.com/DataDog/sketches-go v1.4.2 // indirect
github.com/DataDog/zstd v1.5.2 // indirect
github.com/GehirnInc/crypt v0.0.0-20200316065508-bb7000b8a962 // indirect
Expand Down
20 changes: 11 additions & 9 deletions cmd/configschema/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions cmd/otelcontribcol/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -254,13 +254,14 @@ require (
github.com/DataDog/datadog-agent/pkg/util/log v0.46.0-rc.1 // indirect
github.com/DataDog/datadog-agent/pkg/util/pointer v0.46.0-rc.1 // indirect
github.com/DataDog/datadog-agent/pkg/util/scrubber v0.46.0-rc.1 // indirect
github.com/DataDog/datadog-api-client-go/v2 v2.12.0 // indirect
github.com/DataDog/datadog-api-client-go/v2 v2.13.0 // indirect
github.com/DataDog/datadog-go/v5 v5.1.1 // indirect
github.com/DataDog/go-tuf v0.3.0--fix-localmeta-fork // indirect
github.com/DataDog/gohai v0.0.0-20220718130825-1776f9beb9cc // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.2.3 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/metrics v0.2.3 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/quantile v0.2.3 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.3.0 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/logs v0.3.0 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/metrics v0.3.0 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/quantile v0.3.0 // indirect
github.com/DataDog/sketches-go v1.4.2 // indirect
github.com/DataDog/zstd v1.5.2 // indirect
github.com/GehirnInc/crypt v0.0.0-20200316065508-bb7000b8a962 // indirect
Expand Down
20 changes: 11 additions & 9 deletions cmd/otelcontribcol/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions exporter/datadogexporter/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ go 1.19
require (
github.com/DataDog/agent-payload/v5 v5.0.84
github.com/DataDog/datadog-agent/pkg/trace v0.46.0-rc.1
github.com/DataDog/datadog-api-client-go/v2 v2.12.0
github.com/DataDog/datadog-api-client-go/v2 v2.13.0
github.com/DataDog/gohai v0.0.0-20220718130825-1776f9beb9cc
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.2.3
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/metrics v0.2.3
github.com/DataDog/opentelemetry-mapping-go/pkg/quantile v0.2.3
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.3.0
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/logs v0.3.0
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/metrics v0.3.0
github.com/DataDog/opentelemetry-mapping-go/pkg/quantile v0.3.0
github.com/DataDog/sketches-go v1.4.2
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.13.1
github.com/aws/aws-sdk-go v1.44.274
Expand Down
20 changes: 11 additions & 9 deletions exporter/datadogexporter/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b088ba8

Please sign in to comment.