You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- These hooks automatically run common checks for you but CI also runs the same checks before merging to the main branch is allowed
16
+
- NOTE: this will overwrite existing hooks. Take backups before running
17
+
18
+
## Running a local OpenTelemetry collector
19
+
20
+
OpenTelemetry provides a local collector with a debug exporter which logs all traces, logs, and metrics to stdout.
21
+
22
+
To run a local collector:
23
+
24
+
```
25
+
# Assumes you're in the repo root
26
+
docker run --rm -p 4318:4318 -v "$PWD/localcollector/collector.yaml:/etc/otelcol/config.yaml" otel/opentelemetry-collector:0.136.0 # latest release will probably also work
27
+
```
28
+
29
+
To send Braintrust otel data to the local collector:
30
+
31
+
```
32
+
# assumes you have BRAINTRUST_API_KEY and OPENAI_API_KEY exported
- These hooks automatically run common checks for you but CI also runs the same checks before merging to the main branch is allowed
70
-
- NOTE: this will overwrite existing hooks. Take backups before running
71
-
72
-
## Running a local OpenTelemetry collector
73
-
74
-
OpenTelemetry provides a local collector with a debug exporter which logs all traces, logs, and metrics to stdout.
75
-
76
-
To run a local collector:
77
-
78
-
```
79
-
# Assumes you're in the repo root
80
-
docker run --rm -p 4318:4318 -v "$PWD/localcollector/collector.yaml:/etc/otelcol/config.yaml" otel/opentelemetry-collector:0.136.0 # latest release will probably also work
81
-
```
82
-
83
-
To send Braintrust otel data to the local collector:
84
-
85
-
```
86
-
# assumes you have BRAINTRUST_API_KEY and OPENAI_API_KEY exported
0 commit comments