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
{{ message }}
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
Key changes:
- updated SignalFx client and SignalFx tracing libs to the latest version
- updated README.md with sample code demonstrating how to add extra tags to spans sent by the wrapper
- updated README.md with recommended approach to metrics and events delivery
@@ -265,6 +264,36 @@ The tracing wrapper creates a span for the wrapper handler. This span contains t
265
264
| function_wrapper_version | SignalFx function wrapper qualifier (e.g., signalfx_lambda_0.0.2) |
266
265
| component | The literal value of 'python-lambda-wrapper |
267
266
267
+
#### Adding Extra Tags
268
+
269
+
If you want to add extra tags to your spans use the following snippet **inside** your lambda handler (i.e. this code has to run during lambda handler invocation, not as a part of the cold start logic):
Although the following `signalFxLambda.helper.send*` methods all return promises that resolve when send operation completes it is recommended to ignore those promises as the wrapper is going to waitfor their completion internally.
285
+
286
+
This way multiple send operations may run concurrently without blocking your lambda handler code.
287
+
288
+
You can still await any of those promises if your use case forces you to do so.
0 commit comments