Skip to content

Commit

Permalink
Add JaegerExporterOptions_SetterOverridesEnvironmentVariable
Browse files Browse the repository at this point in the history
  • Loading branch information
pellared committed Jul 12, 2021
1 parent 5909df2 commit 72e9c4e
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,19 @@ public void JaegerExporterOptions_InvalidPortEnvironmentVariableOverride()
Assert.Equal(6831, options.AgentPort); // use default
}

[Fact]
public void JaegerExporterOptions_SetterOverridesEnvironmentVariable()
{
Environment.SetEnvironmentVariable(JaegerExporterOptions.OTelAgentHostEnvVarKey, "envvar-host");

var options = new JaegerExporterOptions
{
AgentHost = "incode-host"
};

Assert.Equal("incode-host", options.AgentHost);
}

[Fact]
public void JaegerExporterOptions_EnvironmentVariableNames()
{
Expand Down

0 comments on commit 72e9c4e

Please sign in to comment.