<?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: Is the possible to merge service created by OpenTelemetry and OneAgent as one? in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Is-the-possible-to-merge-service-created-by-OpenTelemetry-and/m-p/255158#M33688</link>
    <description>&lt;P&gt;Are you ingesting the traces through the API? In this case, since you already have the agent, you might want to try and send those trace through the OneAgent.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/extend-dynatrace/opentelemetry/getting-started/traces/oneagent" target="_blank"&gt;OpenTelemetry traces with OneAgent - Dynatrace Docs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This should merge any span you created into a single trace:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Eric_Yu_0-1725628669669.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22242i87F1603B49F5B865/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Eric_Yu_0-1725628669669.png" alt="Eric_Yu_0-1725628669669.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Sep 2024 13:18:02 GMT</pubDate>
    <dc:creator>Eric_Yu</dc:creator>
    <dc:date>2024-09-06T13:18:02Z</dc:date>
    <item>
      <title>Is the possible to merge service created by OpenTelemetry and OneAgent as one?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Is-the-possible-to-merge-service-created-by-OpenTelemetry-and/m-p/255150#M33687</link>
      <description>&lt;P&gt;Hi guys,&lt;BR /&gt;&lt;BR /&gt;We have set up a OneAgent process running in a Kubernetes (K8S) pod, which automatically collects trace and log data for the containerized application.&lt;/P&gt;&lt;P&gt;At the same time, we have implemented OpenTelemetry within the application to send trace and log data to the Dynatrace SaaS endpoint.&lt;/P&gt;&lt;P&gt;As a result, two services have been created on the Dynatrace platform: one through custom service detection and the other through OpenTelemetry.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22241i57B5CA50FD2942A0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Would it make sense to combine these two services into one for easier monitoring and maintenance? If so, how should we approach this?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 12:28:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Is-the-possible-to-merge-service-created-by-OpenTelemetry-and/m-p/255150#M33687</guid>
      <dc:creator>xuzhao2024</dc:creator>
      <dc:date>2024-09-06T12:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is the possible to merge service created by OpenTelemetry and OneAgent as one?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Is-the-possible-to-merge-service-created-by-OpenTelemetry-and/m-p/255158#M33688</link>
      <description>&lt;P&gt;Are you ingesting the traces through the API? In this case, since you already have the agent, you might want to try and send those trace through the OneAgent.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/extend-dynatrace/opentelemetry/getting-started/traces/oneagent" target="_blank"&gt;OpenTelemetry traces with OneAgent - Dynatrace Docs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This should merge any span you created into a single trace:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Eric_Yu_0-1725628669669.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22242i87F1603B49F5B865/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Eric_Yu_0-1725628669669.png" alt="Eric_Yu_0-1725628669669.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 13:18:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Is-the-possible-to-merge-service-created-by-OpenTelemetry-and/m-p/255158#M33688</guid>
      <dc:creator>Eric_Yu</dc:creator>
      <dc:date>2024-09-06T13:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is the possible to merge service created by OpenTelemetry and OneAgent as one?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Is-the-possible-to-merge-service-created-by-OpenTelemetry-and/m-p/255622#M33739</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to follow the steps as mentioned in this page&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/shortlink/otel-getstarted-otlpexport#export-to-oneagent-traces-only" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/otel-getstarted-otlpexport#export-to-oneagent-traces-only&lt;/A&gt;. But it did not work on the K8S port.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xuzhao2024_0-1726199229540.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22343i566E37B1806F3A3B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xuzhao2024_0-1726199229540.png" alt="xuzhao2024_0-1726199229540.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I got the open telemetry logs as below&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2024-09-13T03:48:40.0018813Z:Activity started. Name = '{0}', Id = '{1}'.{PublishMessage}{00-0a5b9b74e081d09479bf7322d5b2d97e-ec47d561a2c29e90-01}
2024-09-13T03:48:40.1295165Z:Activity stopped. Name = '{0}', Id = '{1}'.{PublishMessage}{00-0a5b9b74e081d09479bf7322d5b2d97e-ec47d561a2c29e90-01}
2024-09-13T03:48:40.1314323Z:Activity started. Name = '{0}', Id = '{1}'.{PublishMessage}{00-706a3ce4b0c6c457196904a867a3e0cc-52fb616820110fba-01}
2024-09-13T03:48:40.2209046Z:Activity started. Name = '{0}', Id = '{1}'.{ConsumeMessage}{00-0a5b9b74e081d09479bf7322d5b2d97e-593d0d535d9d97d4-01}
2024-09-13T03:48:40.2738128Z:Activity stopped. Name = '{0}', Id = '{1}'.{PublishMessage}{00-706a3ce4b0c6c457196904a867a3e0cc-52fb616820110fba-01}
2024-09-13T03:48:40.3615783Z:Activity stopped. Name = '{0}', Id = '{1}'.{ConsumeMessage}{00-0a5b9b74e081d09479bf7322d5b2d97e-593d0d535d9d97d4-01}
2024-09-13T03:48:40.4938106Z:Activity started. Name = '{0}', Id = '{1}'.{ConsumeMessage}{00-706a3ce4b0c6c457196904a867a3e0cc-d4f8600f3b097a2a-01}
2024-09-13T03:48:40.7048522Z:Activity stopped. Name = '{0}', Id = '{1}'.{ConsumeMessage}{00-706a3ce4b0c6c457196904a867a3e0cc-d4f8600f3b097a2a-01}
2024-09-13T03:48:42.2621686Z:Exporter failed send data to collector to {0} endpoint. Data will not be sent. Exception: {1}{http://localhost:14499/otlp/v1/traces}{System.Net.Http.HttpRequestException: Connection refused (localhost:14499)
 ---&amp;gt; System.Net.Sockets.SocketException (111): Connection refused
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.&amp;lt;ConnectAsync&amp;gt;g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellation(CancellationToken cancellationToken)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.HttpMessageHandlerStage.Send(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpMessageHandlerStage.Send(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.SocketsHttpHandler.Send(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.Send(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken)
   at OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation.ExportClient.BaseOtlpHttpExportClient`1.SendExportRequest(TRequest request, DateTime deadlineUtc, CancellationToken cancellationToken)}&lt;/LI-CODE&gt;&lt;P&gt;It looks like the default 14499 port for one agent to capture trace logs from OPTL is not listened on the localhost.&amp;nbsp; Any idea about this part? Is that anything I need to do to enable it on the k8s pod?&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 03:51:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Is-the-possible-to-merge-service-created-by-OpenTelemetry-and/m-p/255622#M33739</guid>
      <dc:creator>xuzhao2024</dc:creator>
      <dc:date>2024-09-13T03:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is the possible to merge service created by OpenTelemetry and OneAgent as one?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Is-the-possible-to-merge-service-created-by-OpenTelemetry-and/m-p/255625#M33740</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/80383"&gt;@xuzhao2024&lt;/a&gt;&amp;nbsp;in Kubernetes, the EEC controller runs on the K8s node, but it's not accessible from pods. You need to send OTLP data to ActiveGate or Cluster. See&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/shortlink/api-otlp-traces" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/api-otlp-traces&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;Depending on your DynaKube configuration in your k8s cluster, you might be able to send it through the ActiveGate running in kubernes - if it's deployed in your setup, and you have dataingest enabled. By default the embedded activegate in k8s is reachable under &lt;A href="https://community.dynatrace.com/" target="_blank"&gt;https://&amp;lt;dynakubename&amp;gt;.dynatrace:443&lt;/A&gt;&amp;nbsp;, but by default it has the self-signed certificate, so you have to configure it properly either on the ActiveGate (in DynaKube, see &lt;A href="https://docs.dynatrace.com/docs/shortlink/dto-params-k8s#spec-activegate" target="_blank"&gt;this&lt;/A&gt; and &lt;A href="https://docs.dynatrace.com/docs/shortlink/network-restricted-environments#tls-certificate" target="_self"&gt;this&lt;/A&gt;) or on the exporter.&lt;BR /&gt;&lt;BR /&gt;Anyway - your issue is from double instrumentation and I believe you will end up with two services anyway. Services of different types can't be merged. You need to decide if you want to do it using Dynatrace instrumentation (custom services in your case) or OpenTelemetry.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 05:58:16 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Is-the-possible-to-merge-service-created-by-OpenTelemetry-and/m-p/255625#M33740</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2024-09-13T05:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is the possible to merge service created by OpenTelemetry and OneAgent as one?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Is-the-possible-to-merge-service-created-by-OpenTelemetry-and/m-p/257115#M33929</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/80383"&gt;@xuzhao2024&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If the services are of the main type: create a service detection rule.&lt;/LI&gt;&lt;LI&gt;In previous Dynatrace versions, there was a service merging rules, currently not available.&lt;/LI&gt;&lt;LI&gt;If these services aren't of the same type: Can't be merged.&lt;/LI&gt;&lt;LI&gt;Depending on the actual deployment of K8s, you should send the Opentelemetry data to the same end point where pods and AG are connected.&lt;/LI&gt;&lt;LI&gt;You can apply a simple change in the Opentelemetry configuration, make sure it's sending the data to either cluster or ActiveGates.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Peter_Youssef_0-1727275274937.png" style="width: 757px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22884iB5C1FD9DD68ADDB2/image-dimensions/757x154?v=v2" width="757" height="154" role="button" title="Peter_Youssef_0-1727275274937.png" alt="Peter_Youssef_0-1727275274937.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can unify the communication configurations between &lt;STRONG&gt;K8s&lt;/STRONG&gt; and &lt;STRONG&gt;Opentelemetry&lt;/STRONG&gt; to ensure the ingested data is correlated without more configurations.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 14:52:47 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Is-the-possible-to-merge-service-created-by-OpenTelemetry-and/m-p/257115#M33929</guid>
      <dc:creator>Peter_Youssef</dc:creator>
      <dc:date>2024-09-25T14:52:47Z</dc:date>
    </item>
  </channel>
</rss>

