We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 449b6dd commit 312bff9Copy full SHA for 312bff9
src/lib/OpenTelemetry.js
@@ -10,6 +10,8 @@ const {
10
const {
11
ATTR_HTTP_USER_AGENT,
12
ATTR_HTTP_FLAVOR,
13
+ ATTR_FAAS_TRIGGER,
14
+ FAAS_TRIGGER_VALUE_HTTP,
15
} = require("@opentelemetry/semantic-conventions/incubating");
16
17
const isApiGwEvent = (event) => {
@@ -85,6 +87,7 @@ class OpenTelemetry {
85
87
86
88
if (isApiGwEvent(event)) {
89
const fullUrl = getFullUrl(event);
90
+ span.setAttribute(ATTR_FAAS_TRIGGER, FAAS_TRIGGER_VALUE_HTTP);
91
span.setAttribute(ATTR_HTTP_ROUTE, event.routeKey?.split(" ")[1]);
92
fullUrl && span.setAttribute(ATTR_URL_FULL, fullUrl);
93
span.setAttribute(
0 commit comments