13 lines
718 B
Markdown
13 lines
718 B
Markdown
# starry-client-sdk demo
|
|
|
|
Demo SDK: request `https://blog.starryskymeow.top/{path}`, return response text, and raise `StarryNotFoundError` on HTTP 404. Telemetry is enabled by default and exported with OTLP/HTTP.
|
|
|
|
Environment variables:
|
|
|
|
- `STARRYSDK_TELEMETRY_ENABLED`: default `true`; set `false` to disable SDK telemetry.
|
|
- `STARRYSDK_SERVICE_NAME`: default `starry-python-sdk-consumer`.
|
|
- `STARRYSDK_METRIC_EXPORT_INTERVAL_MS`: default `5000`.
|
|
- `OTEL_EXPORTER_OTLP_ENDPOINT`: default `http://localhost:4318`; SDK appends `/v1/metrics` and `/v1/logs` for OTLP/HTTP.
|
|
- `OTEL_EXPORTER_OTLP_METRICS_ENDPOINT`: optional explicit metrics endpoint.
|
|
- `OTEL_EXPORTER_OTLP_LOGS_ENDPOINT`: optional explicit logs endpoint.
|