Skip to content

Commit

Permalink
make SdkTracer.tracerEnabled mutable (#6687)
Browse files Browse the repository at this point in the history
Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>
  • Loading branch information
jackshirazi and jack-berg authored Sep 5, 2024
1 parent aef4ca5 commit 61a4b46
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ final class SdkTracer implements ExtendedTracer {

private final TracerSharedState sharedState;
private final InstrumentationScopeInfo instrumentationScopeInfo;
private final boolean tracerEnabled;

// TODO: add dedicated API for updating scope config.
@SuppressWarnings("FieldCanBeFinal") // For now, allow updating reflectively.
private boolean tracerEnabled;

SdkTracer(
TracerSharedState sharedState,
Expand Down

0 comments on commit 61a4b46

Please sign in to comment.