<?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: Query details of GraphQL in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Query-details-of-GraphQL/m-p/221572#M28232</link>
    <description>&lt;P&gt;Yes , that's correct. Only NodeJS is supported out of box as it is mentioned in the &lt;A href="https://www.dynatrace.com/support/help/setup-and-configuration/technology-support" target="_self"&gt;technology support page&lt;/A&gt; and also on the hub page. For traces from other languages you need to use either opentelemetry or create a custom instrumentation with the otel being a recommended approach.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Aug 2023 21:36:07 GMT</pubDate>
    <dc:creator>Julius_Loman</dc:creator>
    <dc:date>2023-08-24T21:36:07Z</dc:date>
    <item>
      <title>Query details of GraphQL</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Query-details-of-GraphQL/m-p/221328#M28193</link>
      <description>&lt;P&gt;Hi team,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using J&lt;SPAN&gt;ava, Netflix DGS, and WebFlux. I&amp;nbsp;want to see what kind of query being made to /graphql (operation name in /graphql endpoint)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nhutdangqn_0-1692759958415.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/13753i605052C6513B35EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nhutdangqn_0-1692759958415.png" alt="nhutdangqn_0-1692759958415.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But on my test, it wasn’t shown. Could you guys help me?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Many thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 09:03:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Query-details-of-GraphQL/m-p/221328#M28193</guid>
      <dc:creator>nhutdangqn</dc:creator>
      <dc:date>2023-08-24T09:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Query details of GraphQL</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Query-details-of-GraphQL/m-p/221374#M28194</link>
      <description>&lt;P&gt;If you know where in your code or in the library code is the query used, you can configure request attributes capturing the method arguments. You can also use OpenTelemetry instrumentation for GraphQL and have Dynatrace capture the span attributes provided by the OpenTelemetry instrumentation, which is probably the easiest way.&lt;BR /&gt;&lt;BR /&gt;Be sure to check the &lt;A href="https://www.youtube.com/watch?v=_-ZPhwOWzmw" target="_blank"&gt;Observability clinic&lt;/A&gt; recording on GraphQL and Dynatrace and how to leverage OpenTelemetry to provide you with more insights into your GraphQL applications.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 08:39:16 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Query-details-of-GraphQL/m-p/221374#M28194</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2023-08-23T08:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Query details of GraphQL</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Query-details-of-GraphQL/m-p/221490#M28213</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/3364"&gt;@Julius_Loman&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.youtube.com/watch?v=_-ZPhwOWzmw" target="_blank" rel="nofollow noopener noreferrer"&gt;Observability clinic&lt;/A&gt;&amp;nbsp;is talking GraphQL and Node but I'm using GraphQL in Java so It can't help me now. Could you have any documentation about GraphQL, Java,&amp;nbsp;&lt;SPAN&gt;Netflix DGS, and WebFlux?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 09:02:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Query-details-of-GraphQL/m-p/221490#M28213</guid>
      <dc:creator>nhutdangqn</dc:creator>
      <dc:date>2023-08-24T09:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Query details of GraphQL</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Query-details-of-GraphQL/m-p/221492#M28214</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/66132"&gt;@nhutdangqn&lt;/a&gt;&amp;nbsp;there is a section about other languages at&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=_-ZPhwOWzmw&amp;amp;t=1542s" target="_blank"&gt;https://www.youtube.com/watch?v=_-ZPhwOWzmw&amp;amp;t=1542s&lt;/A&gt;&amp;nbsp;, basically mentioning you should use&amp;nbsp;&lt;A href="https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/graphql-java-12.0/library" target="_blank"&gt;https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/graphql-java-12.0/library&lt;/A&gt;&amp;nbsp;in your project. The docs seys a standalone instrumentation is supported, so you don't need OpenTelemetry Java Agent for it.&lt;BR /&gt;&lt;BR /&gt;Also, be sure to have the OneAgent feature flag for Opentelemetry turned on (OpenTelemetry (Java) ), so Dynatrace can pick up the OpenTelemetry spans.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 09:34:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Query-details-of-GraphQL/m-p/221492#M28214</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2023-08-24T09:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Query details of GraphQL</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Query-details-of-GraphQL/m-p/221571#M28231</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/3364"&gt;@Julius_Loman&lt;/a&gt;&amp;nbsp; and anyone,&lt;/P&gt;&lt;P&gt;does that mean dynatrace doesn't support graphql tracing besides nodejs out of the box?&lt;/P&gt;&lt;P&gt;We assumed it support graphql in general out of the box&amp;nbsp;&lt;A href="https://www.dynatrace.com/hub/detail/graphql/" target="_blank"&gt;https://www.dynatrace.com/hub/detail/graphql/&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 21:21:16 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Query-details-of-GraphQL/m-p/221571#M28231</guid>
      <dc:creator>Maziz</dc:creator>
      <dc:date>2023-08-24T21:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Query details of GraphQL</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Query-details-of-GraphQL/m-p/221572#M28232</link>
      <description>&lt;P&gt;Yes , that's correct. Only NodeJS is supported out of box as it is mentioned in the &lt;A href="https://www.dynatrace.com/support/help/setup-and-configuration/technology-support" target="_self"&gt;technology support page&lt;/A&gt; and also on the hub page. For traces from other languages you need to use either opentelemetry or create a custom instrumentation with the otel being a recommended approach.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 21:36:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Query-details-of-GraphQL/m-p/221572#M28232</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2023-08-24T21:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Query details of GraphQL</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Query-details-of-GraphQL/m-p/257535#M33987</link>
      <description>&lt;P&gt;Our team has included operation name in the logs with following steps:&lt;/P&gt;&lt;P&gt;1. define global request attribute&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/23029i10A4A6362ECC608E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. inject custom attribute with one agent sdk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;@Component
@RequiredArgsConstructor
public class DynatraceGraphQlInstrumentation extends SimplePerformantInstrumentation {

    private final OneAgentSDK oneAgentSDK;

    @Override
    public @NotNull ExecutionContext instrumentExecutionContext(
            ExecutionContext executionContext,
            InstrumentationExecutionParameters parameters,
            InstrumentationState state) {
        oneAgentSDK.addCustomRequestAttribute("graphqlOperationName", executionContext.getOperationDefinition().getName());
        return super.instrumentExecutionContext(executionContext, parameters, state);
    }

}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. define&amp;nbsp;global request naming rule with the API. This makes operation name became visible in the request name. Docs&amp;nbsp;&lt;A class="" href="https://docs.dynatrace.com/docs/dynatrace-api/configuration-api/service-api/request-naming-api" target="_blank" rel="nofollow noopener"&gt;https://docs.dynatrace.com/docs/dynatrace-api/configuration-api/service-api/request-naming-api&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Final result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/23030i060158638F1A4EC3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 09:10:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Query-details-of-GraphQL/m-p/257535#M33987</guid>
      <dc:creator>Klapsa2503</dc:creator>
      <dc:date>2024-09-30T09:10:31Z</dc:date>
    </item>
  </channel>
</rss>

