Skip to content

Commit 60d2bc6

Browse files
committed
address review comments
1 parent 3fe18aa commit 60d2bc6

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

docs/instrumentation-list.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9681,14 +9681,14 @@ libraries:
96819681
Specifies the key name used to store the trace ID in the logging context.
96829682
type: string
96839683
default: trace_id
9684-
- name: otel.instrumentation.common.logging.span-id
9685-
declarative_name: java.common.logging.span_id
9684+
- name: otel.instrumentation.common.logging.span-id-key
9685+
declarative_name: java.common.logging.span_id_key
96869686
description: |
96879687
Specifies the key name used to store the span ID in the logging context.
96889688
type: string
96899689
default: span_id
9690-
- name: otel.instrumentation.common.logging.trace-flags
9691-
declarative_name: java.common.logging.trace_flags
9690+
- name: otel.instrumentation.common.logging.trace-flags-key
9691+
declarative_name: java.common.logging.trace_flags_key
96929692
description: |
96939693
Specifies the key name used to store the trace flags in the logging context.
96949694
type: string

instrumentation/log4j/log4j-context-data/log4j-context-data-2.17/library-autoconfigure/src/main/java/io/opentelemetry/instrumentation/log4j/contextdata/v2_17/internal/ContextDataKeys.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ public final class ContextDataKeys {
2323
private final String spanIdKey;
2424
private final String traceFlags;
2525

26-
@SuppressWarnings("deprecation") // using deprecated config property
2726
public static ContextDataKeys create(OpenTelemetry openTelemetry) {
2827
DeclarativeConfigProperties logging =
2928
DeclarativeConfigUtil.getInstrumentationConfig(openTelemetry, "common").get("logging");
@@ -60,7 +59,7 @@ public static ContextDataKeys create(OpenTelemetry openTelemetry) {
6059
return new ContextDataKeys(traceIdKey, spanIdKey, traceFlagsKey);
6160
}
6261

63-
@SuppressWarnings("deprecation") // using deprecated config property
62+
@SuppressWarnings("deprecation") // using deprecated ConfigPropertiesUtil
6463
private static String getConfig(
6564
DeclarativeConfigProperties config,
6665
String newDeclarativeKey,

0 commit comments

Comments
 (0)