Skip to content

Commit

Permalink
refactor: add serviceName attribute to telemetry data attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed Jan 30, 2025
1 parent e305284 commit deddcbe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions OpenTelemetryIngest/API/OTelIngest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ router.post(
dbSpan.attributes = JSONFunctions.flattenObject(dbSpan.attributes);

attributes = [
"serviceName",
...attributes,
...Object.keys(dbSpan.attributes || {}),
];
Expand Down Expand Up @@ -657,6 +658,7 @@ router.post(
);

attributes = [
"serviceName",
...attributes,
...Object.keys(histogramMetric.attributes || {}),
];
Expand Down Expand Up @@ -889,6 +891,7 @@ router.post(
dbLog.attributes = JSONFunctions.flattenObject(dbLog.attributes);

attributes = [
"serviceName",
...attributes,
...Object.keys(dbLog.attributes || {}),
];
Expand Down

0 comments on commit deddcbe

Please sign in to comment.