# What metrics are being collected implicitly when using "OneAgent-SDK-for-Python"?

**URL:** <https://community.dynatrace.com/t/what-metrics-are-being-collected-implicitly-when-using-oneagent-sdk-for-python/45726>\
**Category:** Open Q&A\
**Tags:** dynatrace-managed, python, documentation, oneagent-sdk\
**Created:** [May 22, 2024, 3:38pm UTC](https://community.dynatrace.com/t/what-metrics-are-being-collected-implicitly-when-using-oneagent-sdk-for-python/45726 "2024-05-22T15:38:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![newtork](https://avatars.discourse-cdn.com/v4/letter/n/ce7236/32.png) [@newtork](https://community.dynatrace.com/u/newtork)\
**Post date:** [May 22, 2024, 3:38pm UTC](https://community.dynatrace.com/t/what-metrics-are-being-collected-implicitly-when-using-oneagent-sdk-for-python/45726/1 "2024-05-22T15:38:36Z")

</div>

Dear Dynatrace Community,

We’re using the [OneAgent-SDK-for-Python](https://github.com/Dynatrace/OneAgent-SDK-for-Python)&nbsp;for collecting traces and metrics for a Python application. But I’m wondering whether there’s a definite list what kind of metrics are being collected when using [trace\_incoming\_web\_request](https://dynatrace.github.io/OneAgent-SDK-for-Python/docs/sdkref.html#oneagent.sdk.SDK.trace_incoming_web_request) for incoming web request. Am I right to assume that just all&nbsp;[Built-in classic metrics](https://docs.dynatrace.com/docs/observe-and-explore/metrics-classic/built-in-metrics) are being collected (where applicable)?

At least from trying out a few metrics I can conclude that many of the “Services / \*” metrics work, like “request count” and “success rate”.

Unfortunately I couldn’t find a good answer in the source code, neither in the&nbsp;[documentation for Dynatrace OneAgent SDK for Python](https://dynatrace.github.io/OneAgent-SDK-for-Python/docs/index.html).

Please let me know, in case this is the wrong place to ask.

---

<div class="post-metadata">

**Author:** ![JoseRomero](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/joseromero/32/19486_2.png) [@JoseRomero](https://community.dynatrace.com/u/JoseRomero)\
**Post date:** [May 23, 2024, 4:33pm UTC](https://community.dynatrace.com/t/what-metrics-are-being-collected-implicitly-when-using-oneagent-sdk-for-python/45726/2 "2024-05-23T16:33:18Z")

</div>

When using the OneAgent SDK for Python with auto-instrumentation, the following service metrics are collected and automatically:

1. **Throughput** : Measures the rate of transactions or requests processed by the service.
2. **Failure Rate** : Monitors the proportion of failed transactions or requests.
3. **Response Time** : Measures the time taken to process requests, but only for traced requests. While auto-instrumentation typically captures all requests, manual instrumentation might restrict this metric.

Additionally, if the Python code interacts with databases, the databases will appear in the Database list. This includes collecting metrics such as:

1. **Slower Queries** : Identifies and reports queries that take longer than usual to execute.

These metrics help in monitoring and optimizing the performance of the services and databases used by the Python application.

---

<div class="post-metadata">

**Author:** ![newtork](https://avatars.discourse-cdn.com/v4/letter/n/ce7236/32.png) [@newtork](https://community.dynatrace.com/u/newtork)\
**Post date:** [May 27, 2024, 11:57am UTC](https://community.dynatrace.com/t/what-metrics-are-being-collected-implicitly-when-using-oneagent-sdk-for-python/45726/3 "2024-05-27T11:57:32Z")

</div>

Thanks for your response! I was hoping for an official document, because there are more stats covered than the ones you mentioned. But for now, I have to assume there isn’t anything written officially, and will conclude my investigation that way.
