Datadog-APM-and-Distributed-Tracing-Fundamentals practice question 3 of 25

What does the following code snippet do for RUM React Native Monitoring? config.firstPartyHosts = ["example.com",

Full set: 180 questions
Answer options
A: "api.yourtadog headers when making requests to api.yournecting Datadog RUM and APM. The way it works is that the RUM SDK will add Datadog headers to requests to your first party backend services. See: https://docs.datadoghq.com/real_user_monitoring/connect_rum_and_traces/?tab=reactnativerum#how-a re-rum-resources-linked-to-traces
Correct Answer:
T
Explanation

The firstPartyHosts property is used during the initialization of the RUM React Native SDK to identify which network requests are made to your own backend services. For any request matching a host in this list, the SDK automatically adds Datadog tracing headers. This allows the backend APM agent to link the server-side trace with the originating frontend user action, creating a complete distributed trace from the client to the backend.

Why Incorrect

This question was presented in a fill-in-the-blank format; therefore, no incorrect options were available for evaluation.

References

1. Datadog Documentation, "React Native Monitoring," Connect RUM and Traces. (https://docs.datadoghq.com/realusermonitoring/reactnative/datacollected/connectrumandtraces/). This page explicitly states: "To link RUM data with traces, you need to specify the hosts of your first party requests in the firstPartyHosts array during the SDK initialization."

2. Datadog Github Repository, dd-sdk-react-native, "Advanced Usage" documentation. The README.md file in the repository details the firstPartyHosts configuration option for enabling distributed tracing.

Scroll to Top