Skip to content

Commit 3d35b54

Browse files
authored
[CONFIGURATION] File configuration - spec stability (open-telemetry#3862)
1 parent 9fcfe9d commit 3d35b54

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ Increment the:
3030
* [CODE HEALTH] Fix clang-tidy warnings, part 2
3131
[#3872](https://github.com/open-telemetry/opentelemetry-cpp/pull/3872)
3232

33+
* [CONFIGURATION] File configuration - spec stability
34+
[#3862](https://github.com/open-telemetry/opentelemetry-cpp/pull/3862)
35+
3336
Important changes:
3437

3538
* [BUILD] Revisit EventLogger deprecation
@@ -39,6 +42,13 @@ Important changes:
3942
plans.
4043
* Please adjust your application accordingly, to avoid disruption.
4144

45+
* [CONFIGURATION] File configuration - spec stability
46+
[#3862](https://github.com/open-telemetry/opentelemetry-cpp/pull/3862)
47+
48+
* The specification for declarative configuration is now stable.
49+
* As a result, environment variable `OTEL_EXPERIMENTAL_CONFIG_FILE`
50+
is now renamed to `OTEL_CONFIG_FILE`.
51+
4252
## [1.25 2026-02-07]
4353

4454
* [RELEASE] Bump main branch to 1.25.0-dev (#3759)

examples/configuration/main.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ static void usage(FILE *out)
274274
"\n"
275275
"The configuration file used will be:\n"
276276
" 1) the file provided in the command line\n"
277-
" 2) the file provided in environment variable ${OTEL_EXPERIMENTAL_CONFIG_FILE}\n"
277+
" 2) the file provided in environment variable ${OTEL_CONFIG_FILE}\n"
278278
" 3) file config.yaml\n"
279279
"\n"
280280
"This utility is also used for functional tests.\n"

sdk/src/configuration/yaml_configuration_parser.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ std::unique_ptr<Configuration> YamlConfigurationParser::ParseFile(const std::str
3030

3131
if (input_file.empty())
3232
{
33-
static std::string env_var_name("OTEL_EXPERIMENTAL_CONFIG_FILE");
33+
static std::string env_var_name("OTEL_CONFIG_FILE");
3434
std::string env_var;
3535
const bool env_exists =
3636
sdk::common::GetStringEnvironmentVariable(env_var_name.c_str(), env_var);

0 commit comments

Comments
 (0)