Telemetry observability settings¶
telemetry.Setup now accepts package-owned telemetry.ObservabilitySettings
instead of *props.Props.
Reusable code should construct settings directly:
shutdown, err := telemetry.Setup(ctx, telemetry.ObservabilitySettings{
ServiceName: "myservice",
Version: "v1.2.3",
Tracing: telemetry.ObservabilitySignalSettings{
OTLP: otelcore.Settings{
Enabled: true,
Endpoint: "http://localhost:4318",
Insecure: true,
},
},
}, controller)
GTB framework callers should use the adapter, which preserves the existing
telemetry.* config keys:
Data directory resolution¶
telemetry.ResolveDataDir now accepts the config file path directly:
GTB framework callers should use the adapter: