constants.go 908 B

123456789101112131415161718192021222324
  1. // Copyright The OpenTelemetry Authors
  2. // SPDX-License-Identifier: Apache-2.0
  3. package jaeger // import "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/jaeger"
  4. import (
  5. "errors"
  6. )
  7. // Status tag values as defined by the OpenTelemetry specification:
  8. // https://github.com/open-telemetry/opentelemetry-specification/blob/v1.8.0/specification/trace/sdk_exporters/non-otlp.md#span-status
  9. const (
  10. statusError = "ERROR"
  11. statusOk = "OK"
  12. )
  13. // eventNameAttr is a Jaeger log field key used to represent OTel Span Event Name as defined by the OpenTelemetry Specification:
  14. // https://github.com/open-telemetry/opentelemetry-specification/blob/34b907207f3dfe1635a35c4cdac6b6ab3a495e18/specification/trace/sdk_exporters/jaeger.md#events
  15. const eventNameAttr = "event"
  16. var (
  17. // errType indicates that a value is not convertible to the target type.
  18. errType = errors.New("invalid type")
  19. )