Skip to content

Commit

Permalink
rename tenant_id -> tenant
Browse files Browse the repository at this point in the history
Signed-off-by: thomas.ebner <[email protected]>
  • Loading branch information
samohte committed Feb 6, 2024
1 parent 9f4fd46 commit ca06322
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ option (udpa.annotations.file_status).package_version_status = ACTIVE;
// [#extension: envoy.tracers.opentelemetry.samplers.dynatrace]

message DynatraceSamplerConfig {
string tenant_id = 1;
string tenant = 1;

string cluster_id = 2;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ DynatraceSampler::DynatraceSampler(
const envoy::extensions::tracers::opentelemetry::samplers::v3::DynatraceSamplerConfig& config,
Server::Configuration::TracerFactoryContext& context,
SamplerConfigFetcherPtr sampler_config_fetcher)
: dt_tracestate_key_(absl::StrCat(calculateTenantId(config.tenant_id()), "-",
: dt_tracestate_key_(absl::StrCat(calculateTenantId(config.tenant()), "-",
absl::string_view(config.cluster_id()), "@dt")),
sampling_controller_(std::move(sampler_config_fetcher)) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class DynatraceSamplerIntegrationTest : public Envoy::HttpIntegrationTest,
name: envoy.tracers.opentelemetry.samplers.dynatrace
typed_config:
"@type": type.googleapis.com/envoy.extensions.tracers.opentelemetry.samplers.v3.DynatraceSamplerConfig
tenant_id: "abc12345"
tenant: "abc12345"
cluster_id: "980df25c"
)EOF";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class MockSamplerConfigFetcher : public SamplerConfigFetcher {
class DynatraceSamplerTest : public testing::Test {

const std::string yaml_string_ = R"EOF(
tenant_id: "abc12345"
tenant: "abc12345"
cluster_id: "980df25c"
)EOF";

Expand Down

0 comments on commit ca06322

Please sign in to comment.