Invalid configuration never throws. The SDK warns (once, rate-limited) and disables itself — fail-open extends to misconfiguration, so a bad env var can’t take your agent down.
Options
The zero-config path
With onlyGLASSRAY_API_KEY set, new Glassray() sends to the hosted endpoint with content capture on, scrubbing on, and full sampling:
Endpoint override
Point the SDK at a self-hosted Glassray by setting the app origin — the SDK derives the traces path itself:/v1/traces) is used verbatim.