Skip to content

Commit cb7fc81

Browse files
committed
docs(cookbook): provider-neutral otel examples (drop Honeycomb)
1 parent 6acbeae commit cb7fc81

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

docs/cookbook/config.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -158,27 +158,27 @@ configuration and Hyper will emit tracing spans as configured.
158158

159159
| Config Key | `config.exs` | `config.toml` | Default | Notes |
160160
| ---------- | ------------ | ------------- | ------- | ----- |
161-
| `proto` | `.proto` | `.proto` | - | |
162-
| `endpoint` | `.endpoint` | `.endpoint` | - | |
163-
| `headers` | `.headers` | `.headers` | - | |
161+
| `proto` | `.proto` | `.proto` | `http_protobuf` | One of `http_protobuf` or `grpc`. |
162+
| `endpoint` | `.endpoint` | `.endpoint` | - | OTLP collector URL. Falls back to the standard `OTEL_EXPORTER_OTLP_ENDPOINT` environment variable; telemetry is disabled when none is set. |
163+
| `headers` | `.headers` | `.headers` | - | Headers sent with each export, e.g. an auth token for your backend. |
164164

165165
<!-- tabs open -->
166166
### `config.exs`
167167

168168
```elixir
169169
config :hyper, Hyper.Cfg.Otel,
170170
proto: :http_protobuf,
171-
endpoint: "https://api.honeycomb.io",
172-
headers: %{"x-honeycomb-team" => "YOUR_API_KEY"}
171+
endpoint: "https://otel-collector.internal:4318",
172+
headers: %{"authorization" => "Bearer YOUR_TOKEN"}
173173
```
174174

175175
### `config.toml`
176176

177177
```toml
178178
[otel]
179179
proto = "http_protobuf"
180-
endpoint = "https://api.honeycomb.io"
181-
headers = { "x-honeycomb-team" = "YOUR_API_KEY" }
180+
endpoint = "https://otel-collector.internal:4318"
181+
headers = { "authorization" = "Bearer YOUR_TOKEN" }
182182
```
183183
<!-- tabs close -->
184184

@@ -401,8 +401,8 @@ config :hyper, Hyper.Cfg.Grpc,
401401

402402
config :hyper, Hyper.Cfg.Otel,
403403
proto: :http_protobuf,
404-
endpoint: "https://api.honeycomb.io",
405-
headers: %{"x-honeycomb-team" => System.fetch_env!("HONEYCOMB_API_KEY")}
404+
endpoint: "https://otel-collector.internal:4318",
405+
headers: %{"authorization" => System.fetch_env!("OTEL_AUTH_TOKEN")}
406406

407407
config :hyper, Hyper.Cfg.Budget,
408408
mem_max: Unit.Information.gib(4),
@@ -443,7 +443,7 @@ port = 50051
443443

444444
[otel]
445445
proto = "http_protobuf"
446-
endpoint = "https://api.honeycomb.io"
446+
endpoint = "https://otel-collector.internal:4318"
447447

448448
[budget]
449449
mem_max = "4GiB"

0 commit comments

Comments
 (0)