mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 15:27:05 +00:00
Merge pull request #31372 from perryh/dd-trace/env
Add missing option: env
This commit is contained in:
@@ -6,11 +6,11 @@ tracer.init({
|
||||
service: "MyLovelyService",
|
||||
hostname: "localhost",
|
||||
port: 8126,
|
||||
env: "dev",
|
||||
logger: {
|
||||
debug: msg => {},
|
||||
error: err => {},
|
||||
},
|
||||
tags: { tracerEnv: 'dev'}
|
||||
}
|
||||
});
|
||||
|
||||
function useWebFrameworkPlugin(plugin: "express" | "hapi" | "koa" | "restify") {
|
||||
|
||||
Vendored
+5
@@ -83,6 +83,11 @@ interface TracerOptions {
|
||||
*/
|
||||
port?: number | string;
|
||||
|
||||
/**
|
||||
* Set an application’s environment e.g. prod, pre-prod, stage.
|
||||
*/
|
||||
env?: string;
|
||||
|
||||
/**
|
||||
* Percentage of spans to sample as a float between 0 and 1.
|
||||
* @default 1
|
||||
|
||||
Reference in New Issue
Block a user