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
Instruments libraries automatically. This includes a wide range of standard library and3rd party modules. A list of instrumented modules can be found in`elasticapm.instrumentation.register`. This function should be called as early as possibly in the startup of your application. For [supported frameworks](/reference/supported-technologies.md#framework-support), this is called automatically. Example:
Set the name of the current transaction. For supported frameworks, the transaction name is determined automatically, and can be overridden using this function. Example:
Set the result of the current transaction. For supported frameworks, the transaction result is determined automatically, and can be overridden using this function. Example:
Sets the outcome of the transaction. The value can either be `"success"`, `"failure"`or`"unknown"`. This should only be called at the end of a transaction after the outcome is determined.
Attach custom contextual data to the current transaction and errors. Supported frameworks will automatically attach information about the HTTP request and the logged in user. You can attach further data using this function.
322
366
@@ -345,7 +389,9 @@ Errors that happen after this call will also have the custom context attached to
Attach information about the currently logged in user to the current transaction and errors. Example:
351
397
@@ -364,7 +410,9 @@ Errors that happen after this call will also have the user context attached to t
364
410
365
411
### `elasticapm.capture_span` [api-capture-span]
366
412
367
-
Added in v4.1.0.
413
+
```{applies_to}
414
+
apm_agent_python: ga 4.1.0
415
+
```
368
416
369
417
Capture a custom span. This can be used either as a function decorator oras a context manager (in a `with` statement). When used as a decorator, the name of the span will be set to the name of the function. When used as a context manager, a name has to be provided.
Capture a custom async-aware span. This can be used either as a function decorator oras a context manager (in an `asyncwith` statement). When used as a decorator, the name of the span will be set to the name of the function. When used as a context manager, a name has to be provided.
0 commit comments