Back to Changelog

Transaction Tags

Add business context such as customer IDs, order IDs, and tenant IDs to your transactions with Tags.

You can now add tags to Trace0 transactions and view them directly in the Transaction screen.

Tags let you attach important business context to a transaction, such as a customer ID, order ID, tenant ID, etc.

Tags use the trace0.tag.* namespace and can be added through logs or span attributes.

1. Logs

Tags can be included in standard log messages:

log.info("Processing order trace0.tag.customer.id=12345");

Or as fields when using structured logging:

{
  "message":"Processing order",
  "trace0.tag.customer.id":"12345"
}

2. Span attributes

Tags can also be added directly as OpenTelemetry span attributes:

span.setAttribute("trace0.tag.customer.id", "12345");

Trace0 extracts these values and displays them as Tags on the corresponding transaction.

Transaction Tags