ErrorsBuilt-in services · rule
telemetry.settings_invalid
The application's telemetry: section holds something it doesn't take, or a value it can't use.
Area 16, Built-in services; not declinable; the next step is usually the agent's.
Why Jadpo refuses it
telemetry: says where your app's traces, metrics and logs go and how
much of each request. A setting it doesn't know would otherwise be
dropped without a word, and a value it can't read, such as an endpoint
written in the source or a key that isn't secret, would send telemetry
somewhere you didn't mean, or put a credential where anyone reading the
code could see it.
What it looks like
send: gives logs: as text, where it takes the lowest LogLevel sent:
application { telemetry: { send: { logs: "warn" } }}
error send:'s logs: must be a LogLevel
--> app.jadpo:4:19
|4 | logs: "warn" | ^^^^^^ not a `LogLevel`
- reason
telemetry:sends the app's traces, metrics and logs over OpenTelemetry's protocol:endpoint:is aUrlsetting,credential:a header's name and a secret setting,send:which signals go out anddetail:how much of each request. Leaveendpoint:andcredential:out to readOTEL_EXPORTER_OTLP_ENDPOINTandOTEL_EXPORTER_OTLP_HEADERS.- next
- Write the level logs are sent from, such as
logs: LogLevel.warn(agent) - rule
- telemetry.
settings_ invalid - help
- https://jadpo.
dev/docs/errors/telemetry. settings_ invalid
(agent) at the end of the next: line means your coding agent can make
the fix itself.
How to fix it
If you meant a level of log, give the LogLevel it is, the lowest
level sent:
send: { logs: LogLevel.warn }
With no endpoint:, the runtime sends to the collector
OTEL_EXPORTER_OTLP_ENDPOINT names.
Related
Markdown for agents: /docs/errors/telemetry.settings_invalid.md.Built from Jadpo's main branch at commit 9080dc3.