Troubleshooting¶
Work through these checks in order:
- Confirm the agent version: inspect the Java JAR name, or run
beacon --version,npm ls @beacon-observability/nodejs,beacon-dotnet version, orphp beacon-setup.php doctor --php-bin=all. - Confirm
OTEL_SERVICE_NAME, endpoint, and protocol in the same process environment that starts the application. - Test network access from the application host to the receiver port.
- Generate traffic through a supported framework or library; startup alone may not create a span.
- Enable diagnostics for the language below, reproduce the issue, save the output, and restore the normal configuration.
Debugging and diagnostics by language¶
Debugging entry points differ by language. These settings apply to the released versions used in this guide. Each language page includes commands, output locations, and cleanup steps.
| Language | Debugging or diagnostic entry point | Output |
|---|---|---|
| Java | OTEL_JAVAAGENT_DEBUG=true or -Dotel.javaagent.debug=true |
Agent debug logs |
| Python | Configure the opentelemetry logger through application logging; use OTEL_TRACES_EXPORTER=otlp,console for an initial check |
SDK logging depends on Python logging configuration; console Spans verify telemetry creation |
| Node.js | OTEL_LOG_LEVEL=debug, retaining the existing preload |
Console diagnostics |
| .NET | OTEL_LOG_LEVEL=debug with OTEL_DOTNET_AUTO_LOG_DIRECTORY |
Instrumentation log files; beacon-dotnet status checks installation status |
| PHP | OTEL_LOG_LEVEL=debug, OTEL_PHP_LOG_DESTINATION=stderr; php beacon-setup.php doctor --php-bin=all |
SDK internal logs and a runtime diagnostic report |
Agent diagnostic logging is configured separately from telemetry log export controlled by OTEL_LOGS_EXPORTER. Retain the service name, OTLP endpoint, and loading method, enable diagnostics temporarily, reproduce once, then restore the normal launch configuration. Remove credentials and sensitive request contents before sharing logs.
Profiles are missing¶
- Java: check that the runtime is JDK 11 or later and that the profile directory is writable.
- Python and Node.js: verify
OTEL_PROFILING_ENABLED=true, the upload URL, and that the process lives longer than the export interval. - Do not send a profile payload to an OTLP traces endpoint; Java uses JFR multipart uploads; Python and Node.js use pprof multipart uploads. Enable the DataKit Profile input for either format.
Security data is missing¶
- Confirm that the actual application process has
BEACON_SECURITY_ENABLED=trueand an OTLP Logs exporter configured. - Python requires application module prefixes in
BEACON_SECURITY_PYTHON_INCLUDE. Node.js requires source roots inBEACON_SECURITY_NODE_INCLUDEand the ESM--importpreload. - .NET: Keep automatic SDK initialization enabled. Disabling automatic Logs prevents Security OTLP export, although separately enabled local output can still work. Findings require query-parameter sources to reach modeled sinks through supported string concatenation. Check the validated runtime scope.
- PHP: Enable the installation-level Security default or pass the environment override to the workers. Restart PHP-FPM/Apache after changes.
- Ruby: Check Rack middleware placement, client loading order, and Security/SDK initialization after each worker forks.
- Runtime SBOM records may appear before findings. Generate a real request through modeled sources and sinks; startup alone does not produce findings.
- Java 1.3.4, Python 1.2.4, and Node.js 2.0.1 do not export
attack_evidence.status=no_evidencefindings by default. This does not indicate collection failure. SetBEACON_SECURITY_EXPORT_NO_EVIDENCE_ENABLED=trueif needed; see the export policy. - Local diagnostic files remain disabled unless
BEACON_SECURITY_LOCAL_OUTPUT_ENABLED=true. Missing local files do not mean OTLP Logs export failed.
If the application fails only when the agent is active, disable the agent first to restore service, preserve the agent debug log, runtime version, command line with secrets removed, and the smallest reproducible request.
DataKit endpoint or protocol mismatch¶
- Use
http://<DataKit-IP>:4317for OTLP/gRPC, without HTTP paths. - For OTLP/HTTP, use
http/protobufand the shared endpointhttp://<DataKit-IP>:9529/otel. Signal-specific endpoints must include/otel/v1/traces,/otel/v1/metrics, or/otel/v1/logs. curl http://<DataKit-IP>:9529/v1/pingonly checks the DataKit HTTP service; it does not verify the gRPC port or input configuration.- Check listening addresses and network policies for remote access. Within a container,
127.0.0.1refers to that container.
See Common configuration for setup and verification.