Skip to content

Commit

Permalink
Fix build break
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Nied <[email protected]>
  • Loading branch information
peternied committed Aug 15, 2024
1 parent 7a242bc commit 2a26039
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import org.opensearch.migrations.tracing.ActiveContextTrackerByActivityType;
import org.opensearch.migrations.tracing.CompositeContextTracker;
import org.opensearch.migrations.tracing.RootOtelContext;
import org.opensearch.migrations.utils.ProcessHelpers;

import com.beust.jcommander.JCommander;
import lombok.extern.slf4j.Slf4j;
Expand All @@ -26,7 +27,9 @@ public static void main(String[] args) throws Exception {
}

var context = new RootMetadataMigrationContext(
RootOtelContext.initializeOpenTelemetryWithCollectorOrAsNoop(arguments.otelCollectorEndpoint, "metadata"),
RootOtelContext.initializeOpenTelemetryWithCollectorOrAsNoop(arguments.otelCollectorEndpoint,
RootMetadataMigrationContext.SCOPE_NAME,
ProcessHelpers.getNodeInstanceName()),
new CompositeContextTracker(new ActiveContextTracker(), new ActiveContextTrackerByActivityType())
);

Expand Down

0 comments on commit 2a26039

Please sign in to comment.