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 868
868
"DD_USM_ENABLED" : [" A" ],
869
869
"DD_VERSION" : [" A" ],
870
870
"DD_WRITER_BAGGAGE_INJECT" : [" A" ],
871
- "DD_WRITER_TYPE" : [" A" ]
871
+ "DD_WRITER_TYPE" : [" A" ],
872
+ "OTEL_LOG_LEVEL" : [" A" ]
872
873
},
873
874
"aliases" : {
874
875
},
Original file line number Diff line number Diff line change @@ -53,7 +53,8 @@ public static String getEnvironmentVariable(String name) {
53
53
|| name .startsWith ("OTEL_" )
54
54
|| GeneratedSupportedConfigurations .ALIAS_MAPPING .containsKey (name ))
55
55
&& !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." );
57
58
}
58
59
59
60
String config = EnvironmentVariables .get (name );
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ tasks.register('logEnvVarUsages') {
46
46
return
47
47
}
48
48
49
- def matcher = (line =~ / "DD_.+? "/ )
49
+ def matcher = (line =~ / "(?: DD_|OTEL_)[A-Za-z0-9_]+ "/ )
50
50
matcher. each { matchedToken ->
51
51
def token = matchedToken[1 .. -2 ] // remove quotes
52
52
if (! supportedTokenSet. contains(token)) {
You can’t perform that action at this time.
0 commit comments