Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit 78b3551

Browse files
Nir Hadassigitbook-bot
Nir Hadassi
authored andcommitted
GitBook: [master] 2 pages modified
1 parent 59047fc commit 78b3551

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

getting-started/install/custom-collector.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ require('@aspecto/opentelemetry')({
1818

1919
Then, in your custom collector, you can export the spans to Aspecto's collector by defining relevant exporter in `config.yaml`:
2020

21-
```javascript
21+
```yaml
2222
exporters:
2323
otlphttp:
2424
endpoint: https://otelcol-fast.aspecto.io

getting-started/install/use-w-o-aspecto-sdk.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The minimum required for our collector to accept your traces is to have the `ser
1111

1212
## Send Traces to Aspecto directly from your code
1313

14-
To do so, you'd need to use the [`exporter-collector`](https://www.npmjs.com/package/@opentelemetry/exporter-collector) , here's an example Node.js snippet:
14+
To do so, you'd need to use the [`exporter-collector`](https://www.npmjs.com/package/@opentelemetry/exporter-collector) , here's an example Node.js TypeScript snippet:
1515

1616
```typescript
1717
import { NodeTracerProvider } from '@opentelemetry/node';
@@ -41,7 +41,7 @@ provider.addSpanProcessor(
4141

4242
## Export to Aspecto Collector from your own OpenTelemetry Collector
4343

44-
If you already have your own [OpenTelemetry Collector](https://github.com/open-telemetry/opentelemetry-collector) and want to export your traces to Aspecto, you'd need to add a new `otlphttp` exporter in your config.yml:
44+
If you already have your own [OpenTelemetry Collector](https://github.com/open-telemetry/opentelemetry-collector) and want to export your traces to Aspecto, you'd need to add a new `otlphttp` exporter in your config.yml, with Aspecto API-Key as your Authorization header:
4545

4646
```yaml
4747
exporters:

0 commit comments

Comments
 (0)