Introducing Kubernetes and ECS support for Customizing, Monitoring, and Troubleshooting Non-Fatal Issues
We are excited to announce Programmatic error support for Kubernetes and ECS workloads. Programmatic Errors empower developers to customize, monitor, and troubleshoot non-fatal errors that may occur within their applications. With Programmatic Error support (through OpenTelemetry), you can now flag issues that may not interfere with the overall service, such as business logic errors.
Programmatic errors are created by adding span events with a custom attribute with the key name 'lumigo.type'.
For example, in Javascript, you can add a programmatic error in the following manner:
const { trace } = require('@opentelemetry/api'); trace.getActiveSpan()?.addEvent('<error-message>', {'lumigo.type': '<error-type>'});
To learn more about Programmatic errors and troubleshooting microservices with Lumigo, check out our docs page, and our OpenTelemetry distros for Java, Node.js, and Python