You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Add feature gates to migrate deprecated semconv v1.12.0 attributes to
their v1.38.0 equivalents in pkg/translator/zipkin and
internal/coreinternal/goldendataset, following the [semconv feature
gates
RFC](https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/rfcs/semconv-feature-gates.md).
Both gates default to disabled, preserving the existing behavior. Users
can opt in to the migration at their own pace.
Zipkin translator (`pkg.translator.zipkin.*`):
- `net.host.ip` -> `network.local.address`
- `net.peer.ip` -> `network.peer.address`
goldendataset (`internal.coreinternal.goldendataset.*`):
- `net.host.ip` -> `network.local.address`
- `net.peer.ip` -> `network.peer.address`
- `http.host` -> `server.address`
- `http.server_name` -> `server.address`
Migration path:
Enable `<component>.EmitV1NetworkConventions` to start emitting both old
and new keys (dual-emit transition)
Once user pipelines and backends are updated, also enable
`<component>.DontEmitV0NetworkConventions` to stop emitting the
deprecated v1.12.0 keys.
Initially, this was split into 2 PRs, but the
open-telemetry#46534
is also a dependency for this one, so I checked out the code for this PR
and closed that one.
<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixesopen-telemetry#45076open-telemetry#45041
<!--Describe what testing was performed and which tests were added.-->
#### Testing
Tested locally without any error.
---------
Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
|`internal.coreinternal.goldendataset.DontEmitV0NetworkConventions`| alpha | When enabled, goldendataset no longer generates spans with deprecated semconv v1.12.0 attributes (net.host.ip, net.peer.ip, http.host, http.server_name). | v0.147.0 | N/A |[Link](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/45076)|
12
+
|`internal.coreinternal.goldendataset.EmitV1NetworkConventions`| alpha | When enabled, goldendataset generates spans with network.local.address, network.peer.address, and server.address (semconv v1.38.0) instead of the deprecated net.host.ip, net.peer.ip, http.host, http.server_name (semconv v1.12.0). Enable together with pkg.translator.zipkin.EmitV1NetworkConventions for consistent round-trip translation in tests. | v0.147.0 | N/A |[Link](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/45076)|
13
+
14
+
For more information about feature gates, see the [Feature Gates](https://github.com/open-telemetry/opentelemetry-collector/blob/main/featuregate/README.md) documentation.
0 commit comments