Skip to content

Commit

Permalink
Merge pulse contrib changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JayPolanco committed Sep 22, 2023
1 parent 805969d commit ae50e92
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/confighttp/confighttp.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type HTTPClientSettings struct {
Endpoint string `mapstructure:"endpoint"`

// TLSSetting struct exposes TLS client configuration.
TLSSetting configtls.TLSClientSetting `mapstructure:"tls"`
TLSSetting configtls.TLSClientSetting `mapstructure:"tls,omitempty"`

// ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize.
ReadBufferSize int `mapstructure:"read_buffer_size"`
Expand All @@ -49,7 +49,7 @@ type HTTPClientSettings struct {
Headers map[string]configopaque.String `mapstructure:"headers"`

// Custom Round Tripper to allow for individual components to intercept HTTP requests
CustomRoundTripper func(next http.RoundTripper) (http.RoundTripper, error)
CustomRoundTripper func(next http.RoundTripper) (http.RoundTripper, error) `mapstructure:"-"`

// Auth configuration for outgoing HTTP calls.
Auth *configauth.Authentication `mapstructure:"auth"`
Expand Down
1 change: 1 addition & 0 deletions exporter/lokiexporter/factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const (
func TestExporter_new(t *testing.T) {
t.Run("with valid config", func(t *testing.T) {
config := &Config{

HTTPClientSettings: confighttp.HTTPClientSettings{
Endpoint: validEndpoint,
},
Expand Down
2 changes: 2 additions & 0 deletions processor/resourcedetectionprocessor/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ replace github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/e

replace github.com/open-telemetry/opentelemetry-collector-contrib/internal/metadataproviders => ../../internal/metadataproviders

replace go.opentelemetry.io/collector/config/confighttp => ../../config/confighttp

retract (
v0.76.2
v0.76.1
Expand Down
2 changes: 0 additions & 2 deletions processor/resourcedetectionprocessor/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ae50e92

Please sign in to comment.