Merge pull request #31372 from perryh/dd-trace/env

Add missing option: env
This commit is contained in:
Eloy Durán
2018-12-15 14:41:26 -05:00
committed by GitHub
2 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -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") {
+5
View File
@@ -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