Skip to content

Commit 75ada22

Browse files
test(shared): ignore the SDK attributes Effect 4.0.2 adds to OTLP resources
Effect 4.0.2 (Effect-TS/effect#8868) puts `telemetry.sdk.*` on every OTLP resource. The test checks the attributes we pass through, so it skips those. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent dd37a67 commit 75ada22

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎packages/shared/src/otelEnvironment.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,10 @@ describe("OtelEnvironment", () => {
501501
),
502502
);
503503
assert.deepStrictEqual(
504-
resource.attributes.map((attribute) => attribute.key),
504+
resource.attributes
505+
.map((attribute) => attribute.key)
506+
// Effect adds these to every resource.
507+
.filter((key) => !key.startsWith("telemetry.sdk.")),
505508
[...attributes, "service.name"],
506509
);
507510
}),

0 commit comments

Comments
 (0)