First connection shows by default; docs fixes from a beginner walkthrough
Requested by Bill · project thread
I followed getting-started as a newcomer, taking an OpenTelemetry app (Flask, Express, net/http) onto an OpAMP server. This PR fixes what got in the way and needs no release decision.
Code: the first connection shows with default log settings
Before this change, Python, Node.js and the .NET plugin logged OpAMP: connected to …; this SDK is managed as … at INFO only, and INFO is hidden by default. So a working SDK printed exactly the same nothing as one that isn't loaded, and getting-started step 4 ("Check it connected") promised a line nobody saw. Go (slog) and Java (JUL) already showed it.
- Python: the line goes to the
pydantic_opamp_otellogger as before. When INFO is off and the application has no logging handlers of its own, it is written to stderr instead. If the application does have its own handlers, they decide whether it shows. - Node.js: without
OTEL_LOG_LEVEL, the line goes to the console, the same way warnings already do. WithOTEL_LOG_LEVELset, it goes to diag info. - .NET:
AgentLoggets an optionalNoticesink. The plugin shows it unlessOTEL_LOG_LEVELis set belowinfo. WithWithOpAmp(), nothing changes: it falls back to Information on the application's logger. - Reconnections ("connected … again") stay at INFO in all three.
Tests: a new Python test, an updated Node.js console test, and a new .NET ReachabilityTests.TheFirstConnectionIsANotice. I checked each one fails when the first-connect call is reverted to plain INFO. All of these pass locally: Python otel (572), Node.js otel (153), .NET AutoInstrumentation (189) and Hosting (81) on net8.0.
Docs
- python-otel:
pip install ./python ./python/otelfailed (No matching distribution found for pydantic-opamp-core, thenlibopamp_native.so is missing). The page now gives the three steps that work: clone,scripts/fetch_core.py fetch,pip install ./python/core ./python ./python/otel. - getting-started, host section: it said the server is restricted by default. Since #99 the server can run any config unless the host was installed with
--restricted. - getting-started: says what the key is called where, and that
OTEL_OPAMP_STATE_DIRis optional. The example/var/lib/...path can't be created by a non-root user. - guides/logfire:
- Fleet no longer offers "Just monitor".
- The host command Fleet shows uses
--token-stdinandlogfire-cli>=0.1.16, not--enrollment-token <key>. Checked against the dialog's command builder. - Fleet calls an application's key the "connection key".
- Integration pages: the placeholder is
<key>, not<enrollment key>. Applications don't enroll. - go-otel: the snippet now declares
ctx. - CHANGELOG: a line under Unreleased, Changed.
Out of scope here: publishing the SDKs to their registries, and pushing the go/opampsupervisor/v0.8.0 tag. The docs already point at 0.8.0, prepared in #103, but no tag or release exists, so those download commands 404 today.
Generated by Claude Code