@celonis/content-cli 0.5.1 → 0.5.2

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.
@@ -3,5 +3,6 @@ export declare class TracingUtils {
3
3
  [key: string]: string;
4
4
  };
5
5
  private static getTraceId;
6
+ private static getParentTraceId;
6
7
  private static generateId;
7
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celonis/content-cli",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "CLI Tool to help manage content in Celonis EMS",
5
5
  "main": "content-cli.js",
6
6
  "bin": {
package/util/tracing.js CHANGED
@@ -14,12 +14,16 @@
14
14
  static getTracingHeaders() {
15
15
  return {
16
16
  "x-datadog-trace-id": this.getTraceId(),
17
+ "x-datadog-parent-id": this.getParentTraceId(),
17
18
  "x-datadog-sampling-priority": "1",
18
19
  };
19
20
  }
20
21
  static getTraceId() {
21
22
  return process.env.TRACE_ID || this.generateId();
22
23
  }
24
+ static getParentTraceId() {
25
+ return process.env.PARENT_TRACE_ID || this.generateId();
26
+ }
23
27
  static generateId() {
24
28
  return crypto.randomBytes(8).toString("hex");
25
29
  }