Skip to content

Conversation

@kustrun
Copy link

@kustrun kustrun commented May 13, 2025

Ref: #58

Motivation

Currently muxTracer supports only built-in tracers. It should also support JS tracers.

Dependent on: alloy-rs/alloy#2442

@kustrun kustrun force-pushed the feat/support-js-tracer-in-mux-tracer branch from 9351f18 to f0f15f7 Compare May 13, 2025 17:52
Copy link
Contributor

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool,

for testing you can patch the alloy deps to you branch

I'd still like to keep mux support without the json feature so we need sprinkle some features across this file

/// Mux tracing inspector that runs and collects results of multiple inspectors at once.
#[derive(Clone, Debug)]
#[derive(Debug)]
#[cfg(feature = "js-tracer")]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since the fields are private we can simply feature gate the addiiotnal jsInspector here

@kustrun
Copy link
Author

kustrun commented May 14, 2025

@mattsse As suggested, I have added the conditional support for JS tracer in MUX tracer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants