()
| 239 | const resourceAttributesEnvVar = "OTEL_RESOURCE_ATTRIBUTES" |
| 240 | |
| 241 | func filterResourceAttributesEnvvar() { |
| 242 | if v := os.Getenv(resourceAttributesEnvVar); v != "" { |
| 243 | if filtered := filterResourceAttributes(v); filtered != "" { |
| 244 | _ = os.Setenv(resourceAttributesEnvVar, filtered) |
| 245 | } else { |
| 246 | _ = os.Unsetenv(resourceAttributesEnvVar) |
| 247 | } |
| 248 | } |
| 249 | } |
| 250 | |
| 251 | // dockerCLIAttributePrefix is the prefix for any docker cli OTEL attributes. |
| 252 | // When updating, make sure to also update the copy in cli-plugins/manager. |
no test coverage detected
searching dependent graphs…