Skip to content

Commit 2c5e330

Browse files
authored
Merge pull request #6 from onemanbucket/main
add service.name attribute to otel metrics
2 parents bf31337 + ac5fb14 commit 2c5e330

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@flarelabs-net/workers-observability-utils",
3-
"version": "0.3.2",
3+
"version": "0.3.3",
44
"description": "A collection of Utilities for Capturing Logs and Metrics from Cloudflare Workers",
55
"type": "module",
66
"publishConfig": {

src/sinks/metrics/otel.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export class OtelMetricSink implements MetricSink {
7070
executionModel === "stateless" ? "Workers" : "Durable Objects",
7171
"cloud.region": "earth",
7272
"faas.name": scriptName,
73+
"service.name": scriptName,
7374
"faas.trigger": trigger,
7475
"faas.version": versionId,
7576
});

0 commit comments

Comments
 (0)