config.go 885 B

12345678910111213141516171819202122232425
  1. // Copyright The OpenTelemetry Authors
  2. // SPDX-License-Identifier: Apache-2.0
  3. package zipkinreceiver // import "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/zipkinreceiver"
  4. import (
  5. "go.opentelemetry.io/collector/component"
  6. "go.opentelemetry.io/collector/config/confighttp"
  7. )
  8. // Config defines configuration for Zipkin receiver.
  9. type Config struct {
  10. // Configures the receiver server protocol.
  11. confighttp.HTTPServerSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct
  12. // If enabled the zipkin receiver will attempt to parse string tags/binary annotations into int/bool/float.
  13. // Disabled by default
  14. ParseStringTags bool `mapstructure:"parse_string_tags"`
  15. }
  16. var _ component.Config = (*Config)(nil)
  17. // Validate checks the receiver configuration is valid
  18. func (cfg *Config) Validate() error {
  19. return nil
  20. }