Skip to content

Commit

Permalink
[exporter/datadogexporter] Add support for nested attributes (#29633)
Browse files Browse the repository at this point in the history
**Description:** 
This PR updates `pkg/otlp/logs` to bring in the changes from the
following PR:
DataDog/opentelemetry-mapping-go#207.

**Link to tracking Issue:** #26382

Fixes #26382
  • Loading branch information
mackjmr committed Dec 4, 2023
1 parent b02fc3e commit 23435d8
Show file tree
Hide file tree
Showing 11 changed files with 57 additions and 30 deletions.
27 changes: 27 additions & 0 deletions .chloggen/add-support-nested-log-attributes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Use this changelog template to create an entry for release notes.

# 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/datadogexporter

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Add support for nested log attributes.

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

# (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:

# If your change doesn't affect end users or the exported elements of any package,
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
# Optional: The change log or logs in which this entry should be included.
# e.g. '[user]' or '[user, api]'
# Include 'user' if the change is relevant to end users.
# Include 'api' if there is a change to a library API.
# Default: '[user]'
change_logs: []
4 changes: 2 additions & 2 deletions cmd/configschema/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ require (
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor v0.11.0 // indirect
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 // indirect
github.com/AzureAD/microsoft-authentication-library-for-go v1.2.0 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.8.1 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.8.3 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/metrics v0.8.1 // indirect
github.com/gocql/gocql v1.6.0 // indirect
github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed // indirect
Expand Down Expand Up @@ -230,7 +230,7 @@ require (
github.com/DataDog/go-tuf v1.0.2-0.5.2 // indirect
github.com/DataDog/gohai v0.0.0-20220718130825-1776f9beb9cc // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/inframetadata v0.8.1 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/logs v0.8.1 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/logs v0.8.3 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/quantile v0.8.1 // indirect
github.com/DataDog/sketches-go v1.4.3 // indirect
github.com/DataDog/zstd v1.5.2 // indirect
Expand Down
8 changes: 4 additions & 4 deletions cmd/configschema/go.sum

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

4 changes: 2 additions & 2 deletions cmd/otelcontribcol/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ require (
github.com/DataDog/go-tuf v1.0.2-0.5.2 // indirect
github.com/DataDog/gohai v0.0.0-20220718130825-1776f9beb9cc // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/inframetadata v0.8.1 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.8.1 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/logs v0.8.1 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.8.3 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/logs v0.8.3 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/metrics v0.8.1 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/quantile v0.8.1 // indirect
github.com/DataDog/sketches-go v1.4.3 // indirect
Expand Down
8 changes: 4 additions & 4 deletions cmd/otelcontribcol/go.sum

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

4 changes: 2 additions & 2 deletions exporter/datadogexporter/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ require (
github.com/DataDog/datadog-api-client-go/v2 v2.18.0
github.com/DataDog/gohai v0.0.0-20220718130825-1776f9beb9cc
github.com/DataDog/opentelemetry-mapping-go/pkg/inframetadata v0.8.1
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.8.1
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/logs v0.8.1
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.8.3
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/logs v0.8.3
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/metrics v0.8.1
github.com/DataDog/opentelemetry-mapping-go/pkg/quantile v0.8.1
github.com/DataDog/sketches-go v1.4.3
Expand Down
8 changes: 4 additions & 4 deletions exporter/datadogexporter/go.sum

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

4 changes: 2 additions & 2 deletions exporter/datadogexporter/integrationtest/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ require (
github.com/DataDog/go-tuf v1.0.2-0.5.2 // indirect
github.com/DataDog/gohai v0.0.0-20220718130825-1776f9beb9cc // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/inframetadata v0.8.1 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.8.1 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/logs v0.8.1 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.8.3 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/logs v0.8.3 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/metrics v0.8.1 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/quantile v0.8.1 // indirect
github.com/DataDog/sketches-go v1.4.3 // indirect
Expand Down
8 changes: 4 additions & 4 deletions exporter/datadogexporter/integrationtest/go.sum

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

4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ require (
github.com/DataDog/go-tuf v1.0.2-0.5.2 // indirect
github.com/DataDog/gohai v0.0.0-20220718130825-1776f9beb9cc // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/inframetadata v0.8.1 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.8.1 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/logs v0.8.1 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.8.3 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/logs v0.8.3 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/metrics v0.8.1 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/quantile v0.8.1 // indirect
github.com/DataDog/sketches-go v1.4.3 // indirect
Expand Down
8 changes: 4 additions & 4 deletions go.sum

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

0 comments on commit 23435d8

Please sign in to comment.