@blamejs/core 0.14.19 → 0.14.20

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.
@@ -309,7 +309,12 @@ function timed(name, fn, labels) {
309
309
  // pass attribute keys that should match the keys below. The map is
310
310
  // frozen — adding a new attribute requires a release.
311
311
  //
312
- // Reference: https://opentelemetry.io/docs/specs/semconv/general/attributes/
312
+ // References:
313
+ // https://opentelemetry.io/docs/specs/semconv/general/attributes/
314
+ // https://opentelemetry.io/docs/specs/semconv/resource/ (resource,
315
+ // telemetry-sdk, deployment-environment)
316
+ // https://opentelemetry.io/docs/specs/semconv/resource/k8s/
317
+ // https://opentelemetry.io/docs/specs/semconv/resource/faas/
313
318
  var SEMCONV = Object.freeze({
314
319
  // HTTP server (stable per OTel semconv)
315
320
  HTTP_REQUEST_METHOD: "http.request.method",
@@ -370,10 +375,33 @@ var SEMCONV = Object.freeze({
370
375
  SERVICE_NAME: "service.name",
371
376
  SERVICE_VERSION: "service.version",
372
377
  SERVICE_INSTANCE_ID: "service.instance.id",
378
+ // peer.service — logical name of the remote service a span talks to,
379
+ // distinct from server.address (the host). OTel semconv (general).
380
+ PEER_SERVICE: "peer.service",
381
+ // Deployment environment (aka deployment tier: "production",
382
+ // "staging"). The bare `deployment.environment` key was deprecated in
383
+ // favour of `deployment.environment.name`; this carries the current
384
+ // stable key. OTel semconv resource/deployment-environment.
385
+ DEPLOYMENT_ENVIRONMENT_NAME: "deployment.environment.name",
373
386
  // Telemetry SDK self-identification
374
387
  TELEMETRY_SDK_NAME: "telemetry.sdk.name",
375
388
  TELEMETRY_SDK_LANGUAGE: "telemetry.sdk.language",
376
389
  TELEMETRY_SDK_VERSION: "telemetry.sdk.version",
390
+ // Telemetry distribution self-identification — the redistribution of
391
+ // an OTel SDK an operator runs (e.g. a vendor distro). OTel semconv
392
+ // resource/telemetry-sdk.
393
+ TELEMETRY_DISTRO_NAME: "telemetry.distro.name",
394
+ TELEMETRY_DISTRO_VERSION: "telemetry.distro.version",
395
+ // Instrumentation scope self-identification — the scope (library)
396
+ // that produced a span/metric. OTel semconv otel namespace.
397
+ OTEL_SCOPE_NAME: "otel.scope.name",
398
+ OTEL_SCOPE_VERSION: "otel.scope.version",
399
+ // FaaS (serverless) — function-as-a-service execution context. OTel
400
+ // semconv resource/faas + attributes-registry/faas.
401
+ FAAS_NAME: "faas.name",
402
+ FAAS_VERSION: "faas.version",
403
+ FAAS_INSTANCE: "faas.instance",
404
+ FAAS_TRIGGER: "faas.trigger",
377
405
  // GenAI — OpenTelemetry semantic conventions for generative AI
378
406
  // workloads (LLM clients, vector DB queries, agent frameworks).
379
407
  // Tracking the otel-spec experimental namespace; covers the stable
@@ -410,9 +438,19 @@ var SEMCONV = Object.freeze({
410
438
  CONTAINER_ID: "container.id",
411
439
  CONTAINER_IMAGE_NAME: "container.image.name",
412
440
  CONTAINER_IMAGE_TAG: "container.image.tag",
441
+ // Kubernetes — OTel semconv resource/k8s. Namespace / pod /
442
+ // deployment plus the surrounding workload + node + cluster context.
413
443
  K8S_NAMESPACE_NAME: "k8s.namespace.name",
414
444
  K8S_POD_NAME: "k8s.pod.name",
415
445
  K8S_DEPLOYMENT_NAME: "k8s.deployment.name",
446
+ K8S_NODE_NAME: "k8s.node.name",
447
+ K8S_CLUSTER_NAME: "k8s.cluster.name",
448
+ K8S_CONTAINER_NAME: "k8s.container.name",
449
+ K8S_STATEFULSET_NAME: "k8s.statefulset.name",
450
+ K8S_DAEMONSET_NAME: "k8s.daemonset.name",
451
+ K8S_JOB_NAME: "k8s.job.name",
452
+ K8S_CRONJOB_NAME: "k8s.cronjob.name",
453
+ K8S_REPLICASET_NAME: "k8s.replicaset.name",
416
454
  });
417
455
 
418
456
  // W3C Trace Context — parse / build the `traceparent` HTTP header
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blamejs/core",
3
- "version": "0.14.19",
3
+ "version": "0.14.20",
4
4
  "description": "The Node framework that owns its stack.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "blamejs contributors",
package/sbom.cdx.json CHANGED
@@ -2,10 +2,10 @@
2
2
  "$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json",
3
3
  "bomFormat": "CycloneDX",
4
4
  "specVersion": "1.5",
5
- "serialNumber": "urn:uuid:c7c9f488-0e96-4295-af9d-359b64bbfce6",
5
+ "serialNumber": "urn:uuid:e7a00583-46e2-4fd3-a1bf-9cc0789bed7f",
6
6
  "version": 1,
7
7
  "metadata": {
8
- "timestamp": "2026-06-02T19:28:34.781Z",
8
+ "timestamp": "2026-06-02T23:52:58.690Z",
9
9
  "lifecycles": [
10
10
  {
11
11
  "phase": "build"
@@ -19,14 +19,14 @@
19
19
  }
20
20
  ],
21
21
  "component": {
22
- "bom-ref": "@blamejs/core@0.14.19",
22
+ "bom-ref": "@blamejs/core@0.14.20",
23
23
  "type": "application",
24
24
  "name": "blamejs",
25
- "version": "0.14.19",
25
+ "version": "0.14.20",
26
26
  "scope": "required",
27
27
  "author": "blamejs contributors",
28
28
  "description": "The Node framework that owns its stack.",
29
- "purl": "pkg:npm/%40blamejs/core@0.14.19",
29
+ "purl": "pkg:npm/%40blamejs/core@0.14.20",
30
30
  "properties": [],
31
31
  "externalReferences": [
32
32
  {
@@ -54,7 +54,7 @@
54
54
  "components": [],
55
55
  "dependencies": [
56
56
  {
57
- "ref": "@blamejs/core@0.14.19",
57
+ "ref": "@blamejs/core@0.14.20",
58
58
  "dependsOn": []
59
59
  }
60
60
  ]