Skip to content

Commit f58448b

Browse files
Update honeycomb section to also show pipeline config (#395)
* Update honeycomb section to also show pipeline config We've had some people get confused by the wording in our instructions, since they configured an exporter but didn't add it to the exporter pipeline. This addresses that by just including exporter pipeline stuff in each code sample. * Update src/docs/components/otlp-exporter.mdx Co-authored-by: bryan-aguilar <[email protected]> Co-authored-by: bryan-aguilar <[email protected]>
1 parent cf243f8 commit f58448b

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

src/docs/components/otlp-exporter.mdx

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,25 +321,38 @@ To send trace data, all you need is the API key for your Environment:
321321
```yaml lineNumbers=true highlight={7,9}
322322
# Honeycomb Collector configuration
323323
exporters:
324-
otlp:
324+
otlp/traces:
325325
endpoint: api.honeycomb.io:443
326326
headers:
327327
# You can find your Honeycomb API key under Environment settings
328328
"x-honeycomb-team":"<YOUR_API_KEY>"
329+
service:
330+
extensions: []
331+
pipelines:
332+
traces:
333+
receivers: [otlp]
334+
processors: []
335+
exporters: [otlp/traces]
329336
```
330337

331-
332338
To send metrics data, you also need to specify the dataset for metrics data:
333339

334340
```yaml lineNumbers=true highlight={7,9}
335341
# Honeycomb Collector configuration
336342
exporters:
337-
otlp:
343+
otlp/metrics:
338344
endpoint: api.honeycomb.io:443
339345
headers:
340346
# You can find your Honeycomb API key under Environment settings
341347
"x-honeycomb-team":"<YOUR_API_KEY>"
342348
"x-honeycomb-dataset": "<YOUR_METRICS_DATASET>"
349+
service:
350+
extensions: []
351+
pipelines:
352+
metrics:
353+
receivers: [otlp]
354+
processors: []
355+
exporters: [otlp/metrics]
343356
```
344357

345358
See [Honeycomb's OpenTelemetry Collector](https://docs.honeycomb.io/getting-data-in/otel-collector/) docs to learn about additional configuration options.

0 commit comments

Comments
 (0)