config.go 593 B

1234567891011121314151617
  1. // Copyright The OpenTelemetry Authors
  2. // SPDX-License-Identifier: Apache-2.0
  3. package sapmreceiver // import "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/sapmreceiver"
  4. import (
  5. "go.opentelemetry.io/collector/config/confighttp"
  6. "github.com/open-telemetry/opentelemetry-collector-contrib/internal/splunk"
  7. )
  8. // Config defines configuration for SAPM receiver.
  9. type Config struct {
  10. confighttp.HTTPServerSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct
  11. splunk.AccessTokenPassthroughConfig `mapstructure:",squash"`
  12. }