We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3598136 commit dfbb755Copy full SHA for dfbb755
packages/plugins/opentelemetry/src/spans.ts
@@ -592,7 +592,10 @@ export const getOperationFromDocument = (
592
document,
593
operationName || undefined,
594
);
595
- } catch {}
+ } catch {
596
+ // Return undefined if the operation is either not found, or multiple operations exists and no
597
+ // operationName has been provided
598
+ }
599
600
let operationNameMap = operationByDocument.get(document);
601
if (!operationNameMap) {
0 commit comments