Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,15 @@ public void forEachKey(Message carrier, AgentPropagation.KeyClassifier classifie
while (enumeration.hasMoreElements()) {
String key = ((String) enumeration.nextElement());
String lowerCaseKey = cache.computeIfAbsent(key, KEY_MAPPER);
Object value = carrier.getObjectProperty(key);
Object value = null;
try {
value = carrier.getObjectProperty(key);
} catch (Throwable t) {
// log and ignore if we cannot access this property but don't break the instrumentation
if (log.isDebugEnabled()) {
log.debug("Error accessing message property {}", key, t);
}
}
if (value instanceof String && !classifier.accept(lowerCaseKey, (String) value)) {
return;
}
Expand Down