Skip to content

Cleanup access to "otel.javaagent.*" / rename ConfigPropertiesUtil #15807

@zeitlinger

Description

@zeitlinger

With #15787 there are only a few places left that access "otel.javaagent.*" directly and that access ConfigPropertiesUtil

  • copy ConfigPropertiesUtil to a DeprecatedConfigPropertiesUtil and change all usages unless noted otherwise below
  • otel.javaagent.testing.*
    • should keep access via system properties, because we also want to test with declarative config without having to add to the yaml file
    • most access via System.getProperty directly
    • some use ConfigPropertiesUtil - change for consistency
  • otel.javaagent.debug
    • in ContextPropagationDebug (instrumentation-api) - can't access EarlyInitAgentConfig
    • in SupportabilityMetrics (instrumentation-api) - can't access EarlyInitAgentConfig
  • otel.javaagent.experimental.thread-propagation-debugger.enabled
    • should be renamed to be have otel.javaagent.testing. prefix
  • otel.instrumentation.internal-reflection.enabled
    • use otel.javaagent.internal-reflection.enabled (access via EarlyInitAgentConfig) as this is a property that must be available early in startup
  • otel.javaagent.experimental.initializer.jar
    • keep using ConfigPropertiesUtil
  • otel.semconv-stability.opt-in

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestneeds triageNew issue that requires triage

Type

No type

Projects

Status

Awaiting Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions