@loglayer/plugin-datadog-apm-trace-injector 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/README.md +1 -2
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -23,14 +23,13 @@ import tracer from 'dd-trace';
23
23
  import { LogLayer } from 'loglayer';
24
24
  import { datadogTraceInjectorPlugin } from '@loglayer/plugin-datadog-apm-trace-injector';
25
25
 
26
- // Initialize dd-trace (must be done before any other imports)
27
26
  tracer.init();
28
27
 
29
28
  // Create the plugin
30
29
  const traceInjector = datadogTraceInjectorPlugin({
31
30
  tracerInstance: tracer,
32
31
  // Enable the plugin only if the Datadog API key is set
33
- enabled: !!process.env.DD_API_KEY
32
+ disabled: !process.env.DD_API_KEY
34
33
  });
35
34
 
36
35
  // Add to your LogLayer instance
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@loglayer/plugin-datadog-apm-trace-injector",
3
3
  "description": "Injects DataDog APM traces to logs in LogLayer.",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
@@ -36,8 +36,8 @@
36
36
  "dd-trace"
37
37
  ],
38
38
  "dependencies": {
39
- "@loglayer/plugin": "2.1.1",
40
- "@loglayer/shared": "2.3.1"
39
+ "@loglayer/shared": "2.3.1",
40
+ "@loglayer/plugin": "2.1.1"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "24.2.1",
@@ -47,8 +47,8 @@
47
47
  "tsx": "4.20.4",
48
48
  "typescript": "5.9.2",
49
49
  "vitest": "3.2.4",
50
- "@internal/tsconfig": "2.1.0",
51
- "loglayer": "6.6.0"
50
+ "loglayer": "6.6.0",
51
+ "@internal/tsconfig": "2.1.0"
52
52
  },
53
53
  "bugs": "https://github.com/loglayer/loglayer/issues",
54
54
  "engines": {