{"modulePath":"github.com/openshift-hyperfleet/hyperfleet-api","version":"v0.4.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package telemetry\n\n## Functions\n\n```go\nfunc InitTraceProvider(ctx context.Context, serviceName, serviceVersion string) (*trace.TracerProvider, error)\n```\nInitTraceProvider initializes OpenTelemetry trace provider Configuration is driven entirely by standard OpenTelemetry environment variables:\n\n  - OTEL\\_EXPORTER\\_OTLP\\_ENDPOINT: OTLP collector endpoint (if not set, uses stdout)\n  - OTEL\\_EXPORTER\\_OTLP\\_PROTOCOL: \"grpc\" (default) or \"http/protobuf\"\n  - OTEL\\_TRACES\\_SAMPLER: sampler type (default: \"parentbased\\_traceidratio\")\n  - OTEL\\_TRACES\\_SAMPLER\\_ARG: sampling rate 0.0-1.0 (default: 1.0)\n  - OTEL\\_RESOURCE\\_ATTRIBUTES: additional resource attributes (k=v,k2=v2 format)\n  - OTEL\\_PROPAGATORS: list of propagators to use (default: \"tracecontext,baggage\")\n\n```go\nfunc Shutdown(ctx context.Context, tp *trace.TracerProvider) error\n```\nShutdown gracefully shuts down the trace provider\n\n","path":"github.com/openshift-hyperfleet/hyperfleet-api/pkg/telemetry","name":"telemetry","synopsis":"","isRedistributable":true}
