Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added an option to use span name as datadog resource name.
  • Loading branch information
gfonseca-tc committed Dec 3, 2021
1 parent 6fff761 commit 4df22c5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions exporter/datadogexporter/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ type APIConfig struct {
// It can also be set through the `DD_SITE` environment variable.
// The default value is "datadoghq.com".
Site string `mapstructure:"site"`

// If set to true the OpenTelemetry span name will used in the Datadog resource name.
// If set to false the resource name will be filled with the instrumentation library name + span kind.
// The default value is `false`.
SpanNameAsResourceName bool `mapstructure:"span_name_as_resource_name"`
}

// GetCensoredKey returns the API key censored for logging purposes
Expand Down

0 comments on commit 4df22c5

Please sign in to comment.