embabel-agent icon indicating copy to clipboard operation
embabel-agent copied to clipboard

Can we have an overall switch to control Embabel's tracing activity?

Open Sumu-Ning opened this issue 7 months ago • 8 comments

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!

Sumu-Ning avatar Apr 08 '26 16:04 Sumu-Ning

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.

azanux avatar Apr 09 '26 23:04 azanux

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.

Sumu-Ning avatar Apr 12 '26 19:04 Sumu-Ning

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)

azanux avatar Apr 13 '26 04:04 azanux

@Sumu-Ning Did you find a solution to your request?

azanux avatar Apr 29 '26 06:04 azanux

@azanux and @Sumu-Ning can we close this issue? Tnx!

alexheifetz avatar Apr 30 '26 17:04 alexheifetz

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 avatar Apr 30 '26 19:04 Sumu-Ning

@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

azanux avatar May 02 '26 06:05 azanux

I think that would work, thank you! And we can have more categories later, as long as they don't overlap.

Sumu-Ning avatar May 02 '26 14:05 Sumu-Ning