Can we have an overall switch to control Embabel's tracing activity?
Currently I have to set all the 12 switches: https://github.com/embabel/embabel-agent/blob/603947f523cd7762e02e32e414138c0fcca1cd8a/embabel-agent-observability/src/main/java/com/embabel/agent/observability/ObservabilityProperties.java#L51-L85
Or I will have to use Spring's overall switch, which will impact other Libraries too.
Thank you!
Hi @Sumu-Ning Just to clarify , embabel.observability.enabled=false already acts as a master switch that disables all Embabel tracing (all 12 flags) without affecting Spring's own tracing infrastructure.
So you shouldn't need to set all 12 switches individually, unless you want to selectively disable some categories while keeping others active.
Could you share more about your use case? Specifically:
- Are you trying to disable all Embabel tracing while keeping Spring's? → embabel.observability.enabled=false already does that.
- Or are you looking for an intermediate grouping level (e.g. disable all LLM-related traces in one go, but keep agent events)?
- Are you trying to enable all Embabel tracing? → embabel.observability.enabled=true does that.
Or are you looking for an intermediate grouping level (e.g. disable all LLM-related traces in one go, but keep agent events)?
It is similar to this. Disabling all the traces, but also want to keep other observable metrics.
Or are you looking for an intermediate grouping level (e.g. disable all LLM-related traces in one go, but keep agent events)?
It is similar to this. Disabling all the traces, but also want to keep other observable metrics.
Just to make sure I understand correctly - could you give me a concrete example of what you'd want to keep vs. disable?
For instance, something like:
- Disable: all LLM call traces (token usage, prompt/response payloads, latency per call)
- Keep: agent-level metrics (total duration, tool calls count, success/failure status)
@Sumu-Ning Did you find a solution to your request?
@azanux and @Sumu-Ning can we close this issue? Tnx!
Just to make sure I understand correctly - could you give me a concrete example of what you'd want to keep vs. disable?
For instance, something like:
Disable: all LLM call traces (token usage, prompt/response payloads, latency per call) Keep: agent-level metrics (total duration, tool calls count, success/failure status)
This is exactly what I want. The reason for that is, our metric vendor (Datadog) is charging us a lot because of the amount of data from tracing.
@Sumu-Ning
So the missing piece is just an umbrella switch on the tracing side. I'd propose adding:
embabel.observability:
tracing-enabled: false # ← new: kills all 12 trace-* switches in one shot
metrics-enabled: true # ← unchanged: aggregated metrics keep flowin
I think that would work, thank you! And we can have more categories later, as long as they don't overlap.