Skip to content

Commit 8796ac8

Browse files
sophiebitswatson
andauthored
fix(types): update incorrect tracer option names (#6526)
* fix(types): update incorrect tracer option names These are outdated or typoed. There are other options which are not named in the types which I haven't added in this PR. Signed-off-by: Thomas Watson <thomas.watson@datadoghq.com> * Fix type:test Signed-off-by: Thomas Watson <thomas.watson@datadoghq.com> --------- Signed-off-by: Thomas Watson <thomas.watson@datadoghq.com> Co-authored-by: Thomas Watson <thomas.watson@datadoghq.com>
1 parent 998a916 commit 8796ac8

File tree

2 files changed

+7
-23
lines changed

2 files changed

+7
-23
lines changed

docs/test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ tracer.init({
5353
experimental: {
5454
iast: true,
5555
b3: true,
56-
runtimeId: true,
5756
exporter: 'log'
5857
},
5958
hostname: 'agent',

index.d.ts

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,12 @@ declare namespace tracer {
541541
eventLoop?: boolean
542542
}
543543

544+
/**
545+
* Whether to add an auto-generated `runtime-id` tag to metrics.
546+
* @default false
547+
*/
548+
runtimeMetricsRuntimeId?: boolean
549+
544550
/**
545551
* Custom function for DNS lookups when sending requests to the agent.
546552
* @default dns.lookup()
@@ -577,13 +583,6 @@ declare namespace tracer {
577583
*/
578584
experimental?: {
579585
b3?: boolean
580-
traceparent?: boolean
581-
582-
/**
583-
* Whether to add an auto-generated `runtime-id` tag to metrics.
584-
* @default false
585-
*/
586-
runtimeId?: boolean
587586

588587
/**
589588
* Whether to write traces to log output or agentless, rather than send to an agent
@@ -687,13 +686,6 @@ declare namespace tracer {
687686
*/
688687
tags?: { [key: string]: any };
689688

690-
/**
691-
* Specifies which scope implementation to use. The default is to use the best
692-
* implementation for the runtime. Only change this if you know what you are
693-
* doing.
694-
*/
695-
scope?: 'async_hooks' | 'async_local_storage' | 'async_resource' | 'sync' | 'noop'
696-
697689
/**
698690
* Whether to report the hostname of the service host. This is used when the agent is deployed on a different host and cannot determine the hostname automatically.
699691
* @default false
@@ -706,13 +698,6 @@ declare namespace tracer {
706698
*/
707699
logLevel?: 'error' | 'debug'
708700

709-
/**
710-
* If false, require a parent in order to trace.
711-
* @default true
712-
* @deprecated since version 4.0
713-
*/
714-
orphanable?: boolean
715-
716701
/**
717702
* Enables DBM to APM link using tag injection.
718703
* @default 'disabled'
@@ -919,7 +904,7 @@ declare namespace tracer {
919904
/**
920905
* The selection and priority order of context propagation injection and extraction mechanisms.
921906
*/
922-
propagationStyle?: string[] | PropagationStyle
907+
tracePropagationStyle?: string[] | PropagationStyle
923908

924909
/**
925910
* Cloud payload report as tags

0 commit comments

Comments
 (0)