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: sampling, validator, and formatter spans via plugin hooks #1050
Covers what retired sub-issues #471, #472, #473 were trying to do, rolled into one since the mechanism is identical across all three.
Scope
For each of sampling (BaseSamplingStrategy loop), validator (Requirement.check), and formatter (Formatter.apply / render_prompt / parse_response), add a plugin in tracing_plugins.py that hooks the existing pre/post hooks. The metrics plugins for these already exist (SamplingMetricsPlugin, RequirementMetricsPlugin) — mirror their structure.
Use semconv-compliant attribute names where defined; fall back to mellea.* for custom.
Each plugin can land as its own PR if preferred (this issue collapses the three only for planning purposes; the implementation can be split if it's cleaner).
Activity