A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.appsignal.com/java/custom-instrumentation.html below:

Website Navigation


Java Custom Instrumentation | AppSignal documentation

Java Custom Instrumentation

AppSignal is compatible with OpenTelemetry instrumentation packages. Some of these instrumentation packages may require additional setup.

These instrumentations do not not always include all the information you need to debug issues. For more fine-grained reporting, you can add custom instrumentation.

We support OpenTelemetry tracing as laid out in the OpenTelemetry documentation. It's possible to add more data to span using OpenTelemetry span attributes.

There are also AppSignal span attributes that can change how traces are grouped and some attributes that allow for setting sensitive data that is filtered before being sent to our servers.

Creating a new span

Using the tracer from the global tracer provider, create a new span.


Note: In these examples we're using the global tracer provider set by OpenTelemetry. You may want to inject the tracer into your classes for better testability.

Get the current span

You can also fetch the current active span:


Note: This will only return a span if one is already active.

More ways to create and get spans are documented on the OpenTelemetry Java Instrumentation page.

AppSignal attributes

Once you have created, or fetched, a span, you can set certain attributes that are specific to AppSignal to customize how the data arrives in AppSignal.


See our guides for more information on what custom AppSignal attributes are supported:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4