@monocle.sh/effect-agent 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ import { BatchLogRecordProcessor } from "@opentelemetry/sdk-logs";
7
7
  import { NodeSdk } from "@effect/opentelemetry";
8
8
  import { Layer, Option, Redacted } from "effect";
9
9
  import { parseMonocleDsn } from "@monocle.sh/otel-utils/connection";
10
- import { MonocleSpanProcessor } from "@monocle.sh/otel-utils";
10
+ import { MonocleSpanProcessor, buildNodejsMonocleResourceAttributes } from "@monocle.sh/otel-utils";
11
11
  //#region src/layer.ts
12
12
  const DEFAULT_ENDPOINT = "https://ingest.monocle.sh";
13
13
  const DEV_ENDPOINT = "http://localhost:4200";
@@ -22,14 +22,17 @@ const DEV_BATCH_CONFIG = {
22
22
  scheduledDelayMillis: 100
23
23
  };
24
24
  function resolveSdkVersion() {
25
- return "0.2.0";
25
+ return "0.3.0";
26
26
  }
27
27
  function buildNodejsResourceAttributes() {
28
- const attributes = {
29
- "monocle.language.name": "javascript",
30
- "monocle.framework.name": "effect"
31
- };
32
28
  const sdkVersion = resolveSdkVersion();
29
+ const attributes = buildNodejsMonocleResourceAttributes({
30
+ framework: { name: "effect" },
31
+ sdk: {
32
+ name: "@monocle.sh/effect-agent",
33
+ version: sdkVersion
34
+ }
35
+ });
33
36
  if (sdkVersion) attributes["telemetry.sdk.version"] = sdkVersion;
34
37
  return attributes;
35
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monocle.sh/effect-agent",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Monocle observability agent for Effect applications",
5
5
  "keywords": [
6
6
  "effect",
@@ -38,7 +38,7 @@
38
38
  "@opentelemetry/sdk-logs": "^0.216.0",
39
39
  "@opentelemetry/sdk-metrics": "^2.7.1",
40
40
  "@opentelemetry/sdk-trace-node": "^2.7.1",
41
- "@monocle.sh/otel-utils": "1.5.0"
41
+ "@monocle.sh/otel-utils": "1.6.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@adonisjs/tsconfig": "^2.0.0",