Skip to content

Commit

Permalink
Add comment & fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
enuret committed Jan 12, 2024
1 parent 68d6185 commit e18a523
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions exporters/otlp/otlpmetric/otlpmetrichttp/config.go
Expand Up @@ -150,6 +150,15 @@ func WithHeaders(headers map[string]string) Option {
}

// WithHostHeader overrides Host header in HTTP requests.
//
// The example of the use case is using load balancer like envoy between
// the otel instrumentation library and collector. Typically
// the call via envoy's route is based on the host header. Example of the usage
//
// config.WithEndpoint("myenvoyhost")
//
// .WithHostHeader("mytargetotelcollectorhost")
//
// If unset, the target Endpoint's host will be used as Host header.
func WithHostHeader(host string) Option {
return wrappedOption{oconf.WithHostHeader(host)}
Expand Down
Expand Up @@ -15,7 +15,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package otest
package otest // import "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp/internal/otest"

import (
"bytes"
Expand Down
Expand Up @@ -15,7 +15,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package otlpconfig
package otlpconfig // import "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp/internal/otlpconfig"

import (
"crypto/tls"
Expand Down

0 comments on commit e18a523

Please sign in to comment.