1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-11-27 22:49:15 +02:00
Files
opentelemetry-go/sdk/trace
ternua8 0db5ac7e0f sdk/trace/internal/x: generate x package from x component template #7385 (#7411)
Fix #7385

### Summary

This PR adds code generation for the `sdk/trace/internal/x` package
using the shared x component template.

It mirrors the implementation in `sdk/log/internal/x` (#7389) for the
trace SDK.

### Changes

- Added `gen.go` to run `go:generate` for `x.go` and `x_test.go`.
- Generated `x/x.go` and `x/x_test.go` using the shared template.
- Added `feature.go` with the `Observability` experimental feature flag
for the trace SDK,
  following the pattern used in the log SDK.

### Verification

- `go generate ./...` successfully generates the files.
- Unit tests in `x_test.go` pass.

### References

- Log implementation for reference: #7389
- Trace issue: #7385

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2025-09-27 08:01:11 -07:00
..