Skip to content

Commit

Permalink
Merge pull request #118 from mailgun/thrawn/develop
Browse files Browse the repository at this point in the history
Fixed HoneyComb API_KEY key name
  • Loading branch information
thrawn01 authored Aug 3, 2022
2 parents cab90fb + 14d239a commit 85600d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tracing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ Possible environment config exporter config options when using `tracing.InitTrac
#### HoneyComb
* `OTEL_EXPORTER_HONEYCOMB_ENDPOINT` - Defaults to `api.honeycomb.io:443`
* `OTEL_EXPORTER_HONEYCOMB_APIKEY`
* `OTEL_EXPORTER_HONEYCOMB_API_KEY`
Other environment config options recognized by OTel
libraries are defined [here](https://opentelemetry.io/docs/reference/specification/sdk-environment-variables/)
4 changes: 2 additions & 2 deletions tracing/tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,9 @@ func makeHoneyCombExporter(ctx context.Context) (*otlptrace.Exporter, error) {
endPoint = "api.honeycomb.io:443"
}

apiKey := os.Getenv("OTEL_EXPORTER_HONEYCOMB_APIKEY")
apiKey := os.Getenv("OTEL_EXPORTER_HONEYCOMB_API_KEY")
if apiKey == "" {
return nil, errors.New("env 'OTEL_EXPORTER_HONEYCOMB_APIKEY' cannot be empty")
return nil, errors.New("env 'OTEL_EXPORTER_HONEYCOMB_API_KEY' cannot be empty")
}

opts := []otlptracegrpc.Option{
Expand Down

0 comments on commit 85600d1

Please sign in to comment.