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: content/en/profiler/guide/isolate-outliers-in-monolithic-services.md
+24-1Lines changed: 24 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,7 @@ In the previous image, notice that the `ModelTraining` operation is taking more
78
78
79
79
Endpoint and operation isolation is available in your profiles by default, but you may want to isolate a different piece of logic. For example, if the monolith is sensitive to specific customers, you can add a custom filter to the profiles:
The Node.js profiler supports custom labels for your business logic as of `dd-trace` version 5.97.0. To add labels, use `tracer.profiling.runWithLabels()`:
All wall time and CPU time samples taken during the function's execution, including across async continuations, carry the custom labels. Nested `runWithLabels` calls merge labels, with inner values taking precedence for duplicate keys.
141
+
142
+
To specify which label keys you want to use for filtering, call `setCustomLabelKeys()` as a one-time setup before calling `runWithLabels()`:
0 commit comments