Skip to content

Commit

Permalink
Update HoneycombOTELEndpointHandler.java
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-richardson committed Nov 29, 2024
1 parent 8d69ed0 commit b63b961
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ public Pair<SpanProcessor, SdkMeterProvider> buildSpanProcessorAndMeterProvider(
Map<String, String> headers = new HashMap<>();
//todo: add a setting to say "use classic" or "use environments"
headers.put("x-honeycomb-dataset", params.get(PROPERTY_KEY_HONEYCOMB_DATASET));
if (!Objects.equals(params.get(PROPERTY_KEY_HONEYCOMB_MODE), HONEYCOMB_MODE_ENVIRONMENTS)) {
headers.put("x-honeycomb-dataset", params.get(PROPERTY_KEY_HONEYCOMB_DATASET));
headers.put("x-honeycomb-team", EncryptUtil.unscramble(params.get(PROPERTY_KEY_HONEYCOMB_APIKEY)));

var metricsExporter = buildMetricsExporter(endpoint, params);
Expand Down

0 comments on commit b63b961

Please sign in to comment.