<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Delay in sending data through EF2 extension in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Delay-in-sending-data-through-EF2-extension/m-p/277233#M6430</link>
    <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/34133"&gt;@g_kat&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for the details. In fact, looking at the definition&lt;BR /&gt;(via&amp;nbsp;&lt;A href="https://dynatrace-extensions.github.io/dt-extensions-python-sdk/api/extension.html#dynatrace_extension.Extension.report_metric" target="_blank" rel="noopener"&gt;https://dynatrace-extensions.github.io/dt-extensions-python-sdk/api/extension.html#dynatrace_extension.Extension.report_metric&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AntonioSousa_0-1747253917841.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28017i5F7360161A5CEC89/image-size/large?v=v2&amp;amp;px=999" role="button" title="AntonioSousa_0-1747253917841.png" alt="AntonioSousa_0-1747253917841.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the timestamp shouldn't be necessary. And given the logs above, it doesn't explain why data isn't being sent each minute.&lt;/P&gt;&lt;P&gt;Also, the delay in my case of more or less 29 seconds is also something I don't understand why it's happening.&lt;/P&gt;</description>
    <pubDate>Wed, 14 May 2025 20:19:50 GMT</pubDate>
    <dc:creator>AntonioSousa</dc:creator>
    <dc:date>2025-05-14T20:19:50Z</dc:date>
    <item>
      <title>Delay in sending data through EF2 extension</title>
      <link>https://community.dynatrace.com/t5/Extensions/Delay-in-sending-data-through-EF2-extension/m-p/276973#M6413</link>
      <description>&lt;P&gt;When sending data through the EF2 framework report_metric() function, I experience what I believe are delays in data being sent to Dynatrace. This is viewable in Data Explorer, where the count function shows two data points for some minutes:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AntonioSousa_0-1747078275027.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/27948iC5CA9E03C4A192B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="AntonioSousa_0-1747078275027.png" alt="AntonioSousa_0-1747078275027.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But when looking at the extension logs, that shouldn't occur. I have removed in the log below the initial part, and changed sensitive info:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[out]2025-05-12 12:03:06,999 [INFO] my_ext (ThreadPoolExecutor-0_0): App Debug finishing
[out]2025-05-12 12:03:36,064 [INFO] api (ThreadPoolExecutor-1_2): Sent 1 metric lines to EEC: [MintResponse(lines_ok=1, lines_invalid=0, error=None, warnings=None)]
[out]2025-05-12 12:04:07,006 [INFO] my_ext (ThreadPoolExecutor-0_0): App Debug finishing
[out]2025-05-12 12:04:36,041 [INFO] api (ThreadPoolExecutor-1_0): Sent 1 metric lines to EEC: [MintResponse(lines_ok=1, lines_invalid=0, error=None, warnings=None)]
[out]2025-05-12 12:05:07,002 [INFO] my_ext (ThreadPoolExecutor-0_0): App Debug finishing
[out]2025-05-12 12:05:36,055 [INFO] api (ThreadPoolExecutor-1_3): Sent 1 metric lines to EEC: [MintResponse(lines_ok=1, lines_invalid=0, error=None, warnings=None)]
[out]2025-05-12 12:06:07,000 [INFO] my_ext (ThreadPoolExecutor-0_0): App Debug finishing
[out]2025-05-12 12:06:36,049 [INFO] api (ThreadPoolExecutor-1_2): Sent 1 metric lines to EEC: [MintResponse(lines_ok=1, lines_invalid=0, error=None, warnings=None)]
[out]2025-05-12 12:07:07,000 [INFO] my_ext (ThreadPoolExecutor-0_0): App Debug finishing
[out]2025-05-12 12:07:36,049 [INFO] api (ThreadPoolExecutor-1_3): Sent 1 metric lines to EEC: [MintResponse(lines_ok=1, lines_invalid=0, error=None, warnings=None)]
[out]2025-05-12 12:08:06,999 [INFO] my_ext (ThreadPoolExecutor-0_0): App Debug finishing
[out]2025-05-12 12:08:36,054 [INFO] api (ThreadPoolExecutor-1_2): Sent 1 metric lines to EEC: [MintResponse(lines_ok=1, lines_invalid=0, error=None, warnings=None)]
[out]2025-05-12 12:09:07,003 [INFO] my_ext (ThreadPoolExecutor-0_0): App Debug finishing
[out]2025-05-12 12:09:36,045 [INFO] api (ThreadPoolExecutor-1_1): Sent 1 metric lines to EEC: [MintResponse(lines_ok=1, lines_invalid=0, error=None, warnings=None)]
[out]2025-05-12 12:10:06,999 [INFO] my_ext (ThreadPoolExecutor-0_0): App Debug finishing
[out]2025-05-12 12:10:36,057 [INFO] api (ThreadPoolExecutor-1_3): Sent 1 metric lines to EEC: [MintResponse(lines_ok=1, lines_invalid=0, error=None, warnings=None)]&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;And, it seems that data is only being sent out after 29 seconds...&lt;/P&gt;&lt;P&gt;I normally use to send data through the line protocol directly to the AG, but using report_metric() should be better...&lt;BR /&gt;How can I guarantee that data that is sent by the extension is immediately sent to Dynatrace?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 19:41:57 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Delay-in-sending-data-through-EF2-extension/m-p/276973#M6413</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2025-05-12T19:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Delay in sending data through EF2 extension</title>
      <link>https://community.dynatrace.com/t5/Extensions/Delay-in-sending-data-through-EF2-extension/m-p/277019#M6416</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have faced scheduling issue in the past directly sending the metrics so I had to schedule them on the minute on the second to avoid it.&lt;/P&gt;&lt;P&gt;Maybe you could schedule it yourself to run every minute on the second using the schedule() method?&lt;/P&gt;&lt;P&gt;&lt;A href="https://dynatrace-extensions.github.io/dt-extensions-python-sdk/api/extension.html#dynatrace_extension.Extension.schedule" target="_blank"&gt;https://dynatrace-extensions.github.io/dt-extensions-python-sdk/api/extension.html#dynatrace_extension.Extension.schedule&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 10:42:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Delay-in-sending-data-through-EF2-extension/m-p/277019#M6416</guid>
      <dc:creator>g_kat</dc:creator>
      <dc:date>2025-05-13T10:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Delay in sending data through EF2 extension</title>
      <link>https://community.dynatrace.com/t5/Extensions/Delay-in-sending-data-through-EF2-extension/m-p/277052#M6417</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/34133"&gt;@g_kat&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;In my cases, I really like the fact that the processing is distributed across the seconds of a minute. What I won't want is that data is only sent after 30 seconds, or even much more, as is happening in my case.&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 13:46:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Delay-in-sending-data-through-EF2-extension/m-p/277052#M6417</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2025-05-13T13:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Delay in sending data through EF2 extension</title>
      <link>https://community.dynatrace.com/t5/Extensions/Delay-in-sending-data-through-EF2-extension/m-p/277155#M6426</link>
      <description>&lt;P&gt;Do you add the timestamp on the metric line as well? report_metric() says it defaults to the current time so I guess it gets the time of the invocation, but by specifying the timestamp explicitly Dynatrace should be able to place the metric to where the timestamp is regardless on when it was processed(at least that's what support suggested in a similar case).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 08:41:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Delay-in-sending-data-through-EF2-extension/m-p/277155#M6426</guid>
      <dc:creator>g_kat</dc:creator>
      <dc:date>2025-05-14T08:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Delay in sending data through EF2 extension</title>
      <link>https://community.dynatrace.com/t5/Extensions/Delay-in-sending-data-through-EF2-extension/m-p/277233#M6430</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/34133"&gt;@g_kat&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for the details. In fact, looking at the definition&lt;BR /&gt;(via&amp;nbsp;&lt;A href="https://dynatrace-extensions.github.io/dt-extensions-python-sdk/api/extension.html#dynatrace_extension.Extension.report_metric" target="_blank" rel="noopener"&gt;https://dynatrace-extensions.github.io/dt-extensions-python-sdk/api/extension.html#dynatrace_extension.Extension.report_metric&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AntonioSousa_0-1747253917841.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28017i5F7360161A5CEC89/image-size/large?v=v2&amp;amp;px=999" role="button" title="AntonioSousa_0-1747253917841.png" alt="AntonioSousa_0-1747253917841.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the timestamp shouldn't be necessary. And given the logs above, it doesn't explain why data isn't being sent each minute.&lt;/P&gt;&lt;P&gt;Also, the delay in my case of more or less 29 seconds is also something I don't understand why it's happening.&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 20:19:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Delay-in-sending-data-through-EF2-extension/m-p/277233#M6430</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2025-05-14T20:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Delay in sending data through EF2 extension</title>
      <link>https://community.dynatrace.com/t5/Extensions/Delay-in-sending-data-through-EF2-extension/m-p/277247#M6431</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/17213"&gt;@AntonioSousa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;True, I can't explain either that delay, although it doesn't seem random as based on the log it's every minute. Maybe there is something in the internal scheduling of the EEC about when it sends to the tenant.&lt;BR /&gt;&lt;BR /&gt;But, even with the delay of 29-30 seconds every time, you should still be seeing the data points in Dynatarce every minute, as 1 data point would fall inside a minute. In the log, it says it sends every minute yet we see a gap at that specific timeframe.&lt;/P&gt;&lt;P&gt;So, maybe we have the following scenario: you get the ok response but that doesn't mean the metric is accepted in the server. It needs to be processed, and if there is not a defined timestamp it will put the timestamp of the processed time in the data point. That's why I proposed to add the timestamp in the report_metric() method. To avoid any server-side latency that may be introduced. By the way, are the data gaps happening all the time or is it a rare occurence?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 23:33:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Delay-in-sending-data-through-EF2-extension/m-p/277247#M6431</guid>
      <dc:creator>g_kat</dc:creator>
      <dc:date>2025-05-14T23:33:04Z</dc:date>
    </item>
  </channel>
</rss>

