<commit_before>= APM Python Agent Reference (Experimental)

== Getting started

Welcome to the APM Python agent docs.

NOTE: The documentation pages are still work in progress. For more details also check the APM Python Agent https://github.com/elastic/apm-agent-python[Github repository].

The Elastic APM Python agent sends performance metrics and error logs to the APM Server.
It has built-in support for Django and Flask performance metrics and error logging, as well as generic support of other WSGI frameworks for error logging.
The agent is only one of multiple components you need to get started with APM. Please also have a look at the documentation for

 * https://www.elastic.co/guide/en/apm/server/current/index.html[APM Server]
 * https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html[Elasticsearch]

ifdef::env-github[]
NOTE: For the best reading experience, please head over to this document at https://www.elastic.co/guide/en/apm/agent/python/current/index.html[elastic.co]
endif::[]

include::./configuration.asciidoc[Configuration]
include::./django.asciidoc[Django support]
include::./flask.asciidoc[Flask support]

[[advanced-topics]]
== Advanced Topics
include::./custom-instrumentation.asciidoc[Custom Instrumentation]
include::./sanitizing-data.asciidoc[Sanitizing Data]
include::./run-tests-locally.asciidoc[Run Tests Locally]
<commit_msg>fix spelling of GitHub in docs (#51)<commit_after>= APM Python Agent Reference (Experimental)

== Getting started

Welcome to the APM Python agent docs.

NOTE: The documentation pages are still work in progress. For more details also check the APM Python Agent https://github.com/elastic/apm-agent-python[GitHub repository].

The Elastic APM Python agent sends performance metrics and error logs to the APM Server.
It has built-in support for Django and Flask performance metrics and error logging, as well as generic support of other WSGI frameworks for error logging.
The agent is only one of multiple components you need to get started with APM. Please also have a look at the documentation for

 * https://www.elastic.co/guide/en/apm/server/current/index.html[APM Server]
 * https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html[Elasticsearch]

ifdef::env-github[]
NOTE: For the best reading experience, please head over to this document at https://www.elastic.co/guide/en/apm/agent/python/current/index.html[elastic.co]
endif::[]

include::./configuration.asciidoc[Configuration]
include::./django.asciidoc[Django support]
include::./flask.asciidoc[Flask support]

[[advanced-topics]]
== Advanced Topics
include::./custom-instrumentation.asciidoc[Custom Instrumentation]
include::./sanitizing-data.asciidoc[Sanitizing Data]
include::./run-tests-locally.asciidoc[Run Tests Locally]

{'fraction_non_alphanumeric': 0.09924758151200287, 'fraction_numerical': 0.0007165890361877463, 'mean_word_length': 5.2460850111856825, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2441795', 'n_tokens_mistral': 813, 'n_tokens_neox': 783, 'n_words': 272}