You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feat]: Add a switch to enable or disable OpenTelemetry reporting #295
Thanks for reporting thie @Brant-lzh A quick question though, though telemetry is enabled, all of it is no-op if you do not register and configure your tracer. Curious to understand more about your use-case.
I have a similar situation. I use Google's A2A and ADK in conjunction and collect telemetry information with langfuse.
However, I want to disable A2A because the information collected from A2A is too much and noisy. If I disable OTEL collection itself, there is a problem that ADK information is not collected either.
I also have a similar situation. I'm only interested in the actual internal agent traces and not the noisy a2a traces which you can't turn off which can can see from the screenshot.
with crewai you can set-up the otel logging with the following command
from langfuse import get_client
langfuse = get_client()
if langfuse.auth_check():
print("Langfuse client is authenticated and ready!")
else:
print("Authentication failed. Please check your credentials and host.")
import openlit
openlit.init()
I can't get a working solution to exclude the a2a-python-sdk scope from the span, and the a2a sdk doesn't have the ability to surpress or turn it it just for your library.
Langfuse tracing client is implemented as a singleton internally.
Important point, Ensure the code above run before calling get_client() or CallbackHandler.
This may be a different issue but: I've been finding the amount of spans generated by this package to be a bit over the top. Having a way to disable this package specifically, or reduce the amount of spans created, would be nice.
Activity
rajeshvelicheti commentedon Jul 11, 2025
Thanks for reporting thie @Brant-lzh A quick question though, though telemetry is enabled, all of it is no-op if you do not register and configure your tracer. Curious to understand more about your use-case.
kakao-bart-lee commentedon Jul 16, 2025
I have a similar situation. I use Google's A2A and ADK in conjunction and collect telemetry information with langfuse.
However, I want to disable A2A because the information collected from A2A is too much and noisy. If I disable OTEL collection itself, there is a problem that ADK information is not collected either.
andrewn3 commentedon Jul 19, 2025
I also have a similar situation. I'm only interested in the actual internal agent traces and not the noisy a2a traces which you can't turn off which can can see from the screenshot.
with crewai you can set-up the otel logging with the following command
from langfuse import get_client
langfuse = get_client()
if langfuse.auth_check():
print("Langfuse client is authenticated and ready!")
else:
print("Authentication failed. Please check your credentials and host.")
import openlit
openlit.init()
I can't get a working solution to exclude the a2a-python-sdk scope from the span, and the a2a sdk doesn't have the ability to surpress or turn it it just for your library.
Brant-lzh commentedon Jul 21, 2025
@rajeshvelicheti thx
I'm using a2a with LangGraph, and my use case requires me to report telemetry only for LangGraph data, not for a2a data.
andrewn3 commentedon Jul 22, 2025
I did manage to create a custom collector and then exclude the noisy a2a traces with this matching scope if this helps.
Comprehensive filter to exclude a2a spans
filter/exclude-a2a:
error_mode: ignore
traces:
span:
- 'IsMatch(name, "a2a")'
- 'IsMatch(attributes["service.name"], "a2a")'
- 'instrumentation_scope.name == "a2a-python-sdk"'
realkarych commentedon Aug 5, 2025
Hey! I can implement this. Who can decide whether we’ll take this feature into development or not? @holtskinner
bubuTT commentedon Sep 2, 2025
I also using a2a-python with LangGraph,
in my case, I resolve that issue using filtering-by-instrumentation-scope
Langfuse tracing client is implemented as a singleton internally.
Important point, Ensure the code above run before calling
get_client()orCallbackHandler.holtskinner commentedon Sep 30, 2025
As of 0.3.0, telemetry is only installed with a package extra
uv add "a2a-sdk[telemetry]". Does this resolve the issue?niallthomson commentedon Nov 19, 2025
This may be a different issue but: I've been finding the amount of spans generated by this package to be a bit over the top. Having a way to disable this package specifically, or reduce the amount of spans created, would be nice.