Skip to content

Commit

Permalink
Explicitly enable v2 telemetry for apps that don't enable it by default
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlock committed Oct 26, 2023
1 parent cb3f868 commit be4c119
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public static MockTelemetryAgent ConfigureTelemetry(this TestHelper helper)
helper.SetEnvironmentVariable("DD_TRACE_TELEMETRY_URL", $"http://localhost:{telemetry.Port}");
// API key is required when using the custom url
helper.SetEnvironmentVariable("DD_API_KEY", "INVALID_KEY_FOR_TESTS");
// For legacy versions that don't use V2 by default
helper.SetEnvironmentVariable("DD_INTERNAL_TELEMETRY_V2_ENABLED", "1");

return telemetry;
}
Expand Down

0 comments on commit be4c119

Please sign in to comment.