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: docs/reference/api-reference.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ except ValueError:
62
62
client.capture_exception()
63
63
```
64
64
65
-
*`exc_info`: A `(type, value, traceback)` tuple as returned by [`sys.exc_info()`](https://docs.python.org/3/library/sys.md#sys.exc_info). If not provided, it will be captured automatically.
65
+
*`exc_info`: A `(type, value, traceback)` tuple as returned by [`sys.exc_info()`](https://docs.python.org/3/library/sys.html#sys.exc_info). If not provided, it will be captured automatically.
66
66
*`date`: A `datetime.datetime` object representing the occurrence time of the error. If left empty, it defaults to `datetime.datetime.utcnow()`.
67
67
*`context`: A dictionary with contextual information. This dictionary must follow the [Context](docs-content://solutions/observability/apps/elastic-apm-events-intake-api.md#apm-api-error) schema definition.
68
68
*`custom`: A dictionary of custom data you want to attach to the event.
@@ -92,7 +92,7 @@ client.capture_message('Billing process succeeded.')
92
92
```
93
93
94
94
*`stack`: If set to `True` (the default), a stacktrace from the call site will be captured.
95
-
*`exc_info`: A `(type, value, traceback)`tupleas returned by [`sys.exc_info()`](https://docs.python.org/3/library/sys.md#sys.exc_info). If not provided, it will be captured automatically, if `capture_message()` was called in an `except` block.
95
+
*`exc_info`: A `(type, value, traceback)`tupleas returned by [`sys.exc_info()`](https://docs.python.org/3/library/sys.html#sys.exc_info). If not provided, it will be captured automatically, if `capture_message()` was called in an `except` block.
96
96
*`date`: A `datetime.datetime`object representing the occurrence time of the error. If left empty, it defaults to `datetime.datetime.utcnow()`.
97
97
*`context`: A dictionary with contextual information. This dictionary must follow the [Context](docs-content://solutions/observability/apps/elastic-apm-events-intake-api.md#apm-api-error) schema definition.
98
98
*`custom`: A dictionary of custom data you want to attach to the event.
| multiple values separated by commas, without spaces |||
701
701
702
-
A set of paths, optionally using shell globs (see [`fnmatch`](https://docs.python.org/3/library/fnmatch.md) for a description of the syntax). These are matched against the absolute filename of every frame, and if a pattern matches, the frame is considered to be an "in-app frame".
702
+
A set of paths, optionally using shell globs (see [`fnmatch`](https://docs.python.org/3/library/fnmatch.html) for a description of the syntax). These are matched against the absolute filename of every frame, and if a pattern matches, the frame is considered to be an "in-app frame".
703
703
704
704
`include_paths`**takes precedence** over `exclude_paths`.
705
705
@@ -711,7 +711,7 @@ A set of paths, optionally using shell globs (see [`fnmatch`](https://docs.pytho
711
711
|`ELASTIC_APM_EXCLUDE_PATHS`|`EXCLUDE_PATHS`| Varies on Python version and implementation |
712
712
| multiple values separated by commas, without spaces |||
713
713
714
-
A set of paths, optionally using shell globs (see [`fnmatch`](https://docs.python.org/3/library/fnmatch.md) for a description of the syntax). These are matched against the absolute filename of every frame, and if a pattern matches, the frame is considered to be a "library frame".
714
+
A set of paths, optionally using shell globs (see [`fnmatch`](https://docs.python.org/3/library/fnmatch.html) for a description of the syntax). These are matched against the absolute filename of every frame, and if a pattern matches, the frame is considered to be a "library frame".
715
715
716
716
`include_paths`**takes precedence** over `exclude_paths`.
717
717
@@ -1018,7 +1018,7 @@ This is useful if `HTTP_PROXY` / `HTTPS_PROXY` is set for other reasons than age
1018
1018
1019
1019
### `SSL_CERT_FILE` and `SSL_CERT_DIR`[config-ssl-cert-file]
1020
1020
1021
-
To tell the agent to use a different SSL certificate, you can use these environment variables. See also [OpenSSL docs](https://www.openssl.org/docs/manmaster/man7/openssl-env.md#SSL_CERT_DIR-SSL_CERT_FILE).
1021
+
To tell the agent to use a different SSL certificate, you can use these environment variables. See also [OpenSSL docs](https://www.openssl.org/docs/manmaster/man7/openssl-env.html#SSL_CERT_DIR-SSL_CERT_FILE).
1022
1022
1023
1023
Please note that these variables may apply to other SSL/TLS communication in your service, not just related to the APM agent.
Copy file name to clipboardExpand all lines: docs/reference/django-support.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -263,7 +263,7 @@ except MyModel.DoesNotExist:
263
263
264
264
## Celery integration [django-celery-integration]
265
265
266
-
For a general guide on how to set up Django with Celery, head over to Celery’s [Django documentation](http://celery.readthedocs.org/en/latest/django/first-steps-with-django.md#django-first-steps).
266
+
For a general guide on how to set up Django with Celery, head over to Celery’s [Django documentation](http://celery.readthedocs.org/en/latest/django/first-steps-with-django.html#django-first-steps).
267
267
268
268
Elastic APM will automatically log errors from your celery tasks, record performance data and keep the trace.id when the task is launched from an already started Elastic transaction.
Both the [{{apm-lambda-ext}}](apm-aws-lambda://reference/index.md) and the Python APM Agent are added to your Lambda function as [AWS Lambda Layers](https://docs.aws.amazon.com/lambda/latest/dg/invocation-layers.md). Therefore, you need to add the corresponding Layer ARNs (identifiers) to your Lambda function.
218
+
Both the [{{apm-lambda-ext}}](apm-aws-lambda://reference/index.md) and the Python APM Agent are added to your Lambda function as [AWS Lambda Layers](https://docs.aws.amazon.com/lambda/latest/dg/invocation-layers.html). Therefore, you need to add the corresponding Layer ARNs (identifiers) to your Lambda function.
Copy file name to clipboardExpand all lines: docs/reference/logs.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ The Agent provides integrations with both the default Python logging library, as
35
35
36
36
#### `logging`[logging]
37
37
38
-
We use [`logging.setLogRecordFactory()`](https://docs.python.org/3/library/logging.md#logging.setLogRecordFactory) to decorate the default LogRecordFactory to automatically add new attributes to each LogRecord object:
38
+
We use [`logging.setLogRecordFactory()`](https://docs.python.org/3/library/logging.html#logging.setLogRecordFactory) to decorate the default LogRecordFactory to automatically add new attributes to each LogRecord object:
39
39
40
40
*`elasticapm_transaction_id`
41
41
*`elasticapm_trace_id`
@@ -48,7 +48,7 @@ You can disable this automatic behavior by using the [`disable_log_record_factor
48
48
49
49
#### `structlog`[structlog]
50
50
51
-
We provide a [processor](http://www.structlog.org/en/stable/processors.md) for [`structlog`](http://www.structlog.org/en/stable/) which will add three new keys to the event_dict of any processed event:
51
+
We provide a [processor](http://www.structlog.org/en/stable/processors.html) for [`structlog`](http://www.structlog.org/en/stable/) which will add three new keys to the event_dict of any processed event:
52
52
53
53
*`transaction.id`
54
54
*`trace.id`
@@ -79,11 +79,11 @@ In order to correlate logs from your app with transactions captured by the Elast
79
79
*`trace.id`
80
80
*`span.id`
81
81
82
-
If you’re using structured logging, either [with a custom solution](https://docs.python.org/3/howto/logging-cookbook.md#implementing-structured-logging) or with [structlog](http://www.structlog.org/en/stable/) (recommended), then this is fairly easy. Throw the [JSONRenderer](http://www.structlog.org/en/stable/api.md#structlog.processors.JSONRenderer) in, and use [Filebeat](https://www.elastic.co/blog/structured-logging-filebeat) to pull these logs into Elasticsearch.
82
+
If you’re using structured logging, either [with a custom solution](https://docs.python.org/3/howto/logging-cookbook.html#implementing-structured-logging) or with [structlog](http://www.structlog.org/en/stable/) (recommended), then this is fairly easy. Throw the [JSONRenderer](http://www.structlog.org/en/stable/api.html#structlog.processors.JSONRenderer) in, and use [Filebeat](https://www.elastic.co/blog/structured-logging-filebeat) to pull these logs into Elasticsearch.
83
83
84
84
Without structured logging the task gets a little trickier. Here we recommend first making sure your LogRecord objects have the elasticapm attributes (see [`logging`](#logging)), and then you’ll want to combine some specific formatting with a Grok pattern, either in Elasticsearch using [the grok processor](elasticsearch://reference/ingestion-tools/enrich-processor/grok-processor.md), or in [logstash with a plugin](logstash://reference/plugins-filters-grok.md).
85
85
86
-
Say you have a [Formatter](https://docs.python.org/3/library/logging.md#logging.Formatter) that looks like this:
86
+
Say you have a [Formatter](https://docs.python.org/3/library/logging.html#logging.Formatter) that looks like this:
Copy file name to clipboardExpand all lines: docs/reference/opentelemetry-api-bridge.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ with tracer.start_as_current_span("test"):
50
50
*`elasticapm_client`: an already instantiated Elastic APM client
51
51
*`config`: a configuration dictionary, which will be used to instantiate a new Elastic APM client, e.g. `{"SERVER_URL": "https://example.org"}`. See [configuration](/reference/configuration.md) for more information.
52
52
53
-
The `Tracer` object mirrors the upstream interface on the [OpenTelemetry `Tracer` object.](https://opentelemetry-python.readthedocs.io/en/latest/api/trace.md#opentelemetry.trace.Tracer)
53
+
The `Tracer` object mirrors the upstream interface on the [OpenTelemetry `Tracer` object.](https://opentelemetry-python.readthedocs.io/en/latest/api/trace.html#opentelemetry.trace.Tracer)
* Python 2.7 and 3.5 support has been deprecated. The Python agent now requires Python 3.6+. For more information, check [#1021](https://github.com/elastic/apm-agent-python/pull/1021).
24
-
* No longer collecting body for `elasticsearch-py` update and `delete_by_query`. For more information, check [#1013](https://github.com/elastic/apm-agent-python/pull/1013).
25
-
* Align `sanitize_field_names` config with the [cross-agent spec](https://github.com/elastic/apm/blob/3fa78e2a1eeea81c73c2e16e96dbf6b2e79f3c64/specs/agents/sanitization.md). If you are using a non-default `sanitize_field_names`, surrounding each of your entries with stars (e.g. `*secret*`) will retain the old behavior. For more information, check [#982](https://github.com/elastic/apm-agent-python/pull/982).
26
-
* Remove credit card sanitization for field values. This improves performance, and the security value of this check was dubious anyway. For more information, check [#982](https://github.com/elastic/apm-agent-python/pull/982).
23
+
* Python 2.7 and 3.5 support has been deprecated. The Python agent now requires Python 3.6+. For more information, check [#1021](https://github.com/elastic/apm-agent-python/pull/1021).
24
+
* No longer collecting body for `elasticsearch-py` update and `delete_by_query`. For more information, check [#1013](https://github.com/elastic/apm-agent-python/pull/1013).
25
+
* Align `sanitize_field_names` config with the [cross-agent spec](https://github.com/elastic/apm/blob/3fa78e2a1eeea81c73c2e16e96dbf6b2e79f3c64/specs/agents/sanitization.md). If you are using a non-default `sanitize_field_names`, surrounding each of your entries with stars (e.g. `*secret*`) will retain the old behavior. For more information, check [#982](https://github.com/elastic/apm-agent-python/pull/982).
26
+
* Remove credit card sanitization for field values. This improves performance, and the security value of this check was dubious anyway. For more information, check [#982](https://github.com/elastic/apm-agent-python/pull/982).
27
27
* Remove HTTP querystring sanitization. This improves performance, and is meant to standardize behavior across the agents, as defined in [#334](https://github.com/elastic/apm/pull/334). For more information, check [#982](https://github.com/elastic/apm-agent-python/pull/982).
28
-
* Remove `elasticapm.tag()` (deprecated since 5.0.0). For more information, check [#1034](https://github.com/elastic/apm-agent-python/pull/1034).
28
+
* Remove `elasticapm.tag()` (deprecated since 5.0.0). For more information, check [#1034](https://github.com/elastic/apm-agent-python/pull/1034).
0 commit comments