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
Copy file name to clipboardExpand all lines: README.md
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,6 +91,37 @@ curl --request GET \
91
91
OK
92
92
```
93
93
94
+
## Observability
95
+
96
+
SQL Runner exports its metrics at the API endpoint `/metrics`.
97
+
98
+
It supports configuring OpenTelemetry (tracing and logging) using the following environment variables: <https://opentelemetry.io/docs/languages/sdk-configuration/general/>
99
+
100
+
Here are some useful variables:
101
+
102
+
-`OTEL_SERVICE_NAME`: Specify the name of this service (e.g., `sqlrunner-replica-1`).
103
+
-`OTEL_TRACES_EXPORTER`: Specify where the traces should be exported.
104
+
- Supported values: `console`, `otlp`
105
+
- Default: `console`
106
+
-`OTEL_LOGS_EXPORTER`: Specify where the logs should be exported.
107
+
- Supported values: `console`, `otlp`
108
+
- Default: `console`
109
+
-`OTEL_EXPORTER_OTLP_PROTOCOL`: Specify the default protocol for OTLP.
110
+
- Supported values: `grpc`, `http/protobuf`
111
+
- Default: `grpc`
112
+
-`OTEL_EXPORTER_OTLP_ENDPOINT`: Specify the default endpoint for OTLP.
113
+
- Example: `http://otlp-collector:4317`
114
+
-`OTEL_EXPORTER_OTLP_TRACES_PROTOCOL`: Specify the default protocol for OTLP trace data.
115
+
- Supported values: `grpc`, `http/protobuf`
116
+
- Default: falls back to `OTEL_EXPORTER_OTLP_PROTOCOL`
117
+
-`OTEL_EXPORTER_OTLP_TRACES_ENDPOINT`: Specify the default endpoint for OTLP trace data.
0 commit comments