You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/BuffLog/BuffLog.php
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -43,8 +43,11 @@ protected static function configureInstance()
43
43
if (class_exists("\DDTrace\GlobalTracer")) {
44
44
self::$hasGlobalTracer = true;
45
45
} else {
46
-
error_log("Tip #1: Can't find \DDTrace\GlobalTracer class. Did you install the Datadog APM tracer extension? It will allow you to have logs enriched with traces making troubleshooting easier.");
47
-
error_log("Tip #2: If you run a cli mode service (such as a worker), did you set the DD_TRACE_CLI_ENABLED env variable?");
46
+
// local envs don't need tracing
47
+
if (getenv("ENVIRONMENT") !== "local") {
48
+
error_log("Tip #1: Can't find \DDTrace\GlobalTracer class. Did you install the Datadog APM tracer extension? It will allow you to have logs enriched with traces making troubleshooting easier.");
49
+
error_log("Tip #2: If you run a cli mode service (such as a worker), did you set the DD_TRACE_CLI_ENABLED env variable?");
50
+
}
48
51
}
49
52
50
53
// @TODO: We could potentially use the Kubernetes downward API to
0 commit comments