File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
components/environment/src
main/java/datadog/environment Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 868868 "DD_USM_ENABLED" : [" A" ],
869869 "DD_VERSION" : [" A" ],
870870 "DD_WRITER_BAGGAGE_INJECT" : [" A" ],
871- "DD_WRITER_TYPE" : [" A" ]
871+ "DD_WRITER_TYPE" : [" A" ],
872+ "OTEL_LOG_LEVEL" : [" A" ]
872873 },
873874 "aliases" : {
874875 },
Original file line number Diff line number Diff line change @@ -53,7 +53,8 @@ public static String getEnvironmentVariable(String name) {
5353 || name .startsWith ("OTEL_" )
5454 || GeneratedSupportedConfigurations .ALIAS_MAPPING .containsKey (name ))
5555 && !GeneratedSupportedConfigurations .SUPPORTED .contains (name )) {
56- System .err .println ("Warning: Unsupported environment variable " + name + " detected." );
56+ System .err .println (
57+ "Warning: Missing environment variable " + name + " from supported-configurations.json." );
5758 }
5859
5960 String config = EnvironmentVariables .get (name );
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ tasks.register('logEnvVarUsages') {
4646 return
4747 }
4848
49- def matcher = (line =~ / "DD_.+? "/ )
49+ def matcher = (line =~ / "(?: DD_|OTEL_)[A-Za-z0-9_]+ "/ )
5050 matcher. each { matchedToken ->
5151 def token = matchedToken[1 .. -2 ] // remove quotes
5252 if (! supportedTokenSet. contains(token)) {
You can’t perform that action at this time.
0 commit comments