opentelemetry-collector/service/telemetry/internal/migration
Jade Guiton 83102decdf
Use full TracerProvider config from otelconf (#13201)
#### Description

This PR changes the config struct corresponding to
`service::telemetry::traces` to embed the full `TracerProvider` config
struct from `otelconf`, instead of including only its `Processors`
field.

Something similar was previously done for the `MeterProvider` struct in
#12433.

This has the effect of letting users enable sampling on internal
Collector traces using [the `sampler` section of the declarative
config](9c8ff31553/examples/kitchen-sink.yaml (L294)).

#### Link to tracking issue
I couldn't find any relevant issue.

#### Testing
I added a basic example of using the `sampler` to
`service/telemetry/internal/migration/testdata/v0.3.0_traces.yaml` to
test that we can unmarshal this section properly.

#### Documentation
Just a changelog.
2025-06-16 16:00:04 +00:00
..
testdata Use full TracerProvider config from otelconf (#13201) 2025-06-16 16:00:04 +00:00
normalize.go [service] ensure endpoint is prefixed w/ scheme (#12258) 2025-02-03 23:17:06 +00:00
v0.2.0.go Mark telemetry.disableAddressFieldForInternalTelemetry as stable (#13152) 2025-06-04 21:52:14 +00:00
v0.2.0_test.go [chore] bump otel-go deps (#12575) 2025-03-06 20:20:20 +00:00
v0.3.0.go Use full TracerProvider config from otelconf (#13201) 2025-06-16 16:00:04 +00:00
v0.3.0_test.go [service] ensure endpoint is prefixed w/ scheme (#12258) 2025-02-03 23:17:06 +00:00