Skip to content

Commit c9e97d6

Browse files
committed
Add debug logging when we skip importing a resource span
1 parent 01633c9 commit c9e97d6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

apps/webapp/app/v3/otlpExporter.server.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,14 @@ class OTLPExporter {
121121
(attribute) => attribute.key === SemanticInternalAttributes.TRIGGER
122122
);
123123

124-
if (!triggerAttribute) return false;
124+
if (!triggerAttribute) {
125+
logger.debug("Skipping resource span without trigger attribute", {
126+
attributes: resourceSpan.resource?.attributes,
127+
spans: resourceSpan.scopeSpans.flatMap((scopeSpan) => scopeSpan.spans),
128+
});
129+
130+
return;
131+
}
125132

126133
return isBoolValue(triggerAttribute.value) ? triggerAttribute.value.boolValue : false;
127134
});

0 commit comments

Comments
 (0)