Include trace IDs in your logs so Datadog can correlate slow traces with logs; just spend five minutes checking before the meeting.

Key Takeaways

  • Every request sent to an instrumented application generates a trace, and the trace's flame graph shows where the time went.
  • Datadog correlates traces with logs by injecting trace IDs and span IDs into logs. Logs without a trace ID won't appear under the corresponding trace.
  • At Datadog, the FDE is a management role, advising customers through complex deployment cycles; at Dash0, the FDE gets hands-on implementing OpenTelemetry at enterprise customers.

Datadog's own FDE job posting doesn't require you to dig into customers' Datadog setups to debug. The role, titled "Forward Deployed Engineering Manager - Datadog for Startups," calls for serving as a trusted advisor to customers through complex deployment cycles. The hire must be willing to travel frequently and manage a team of SWEs and TSEs who are seconded to the team on a rotating basis.

When Dash0 recruits Forward Deployed Engineers (FDEs) in EMEA, the job is described as far more hands-on: working directly with enterprise customers to deploy and configure OpenTelemetry instrumentation in their environments. The posting is closed now, but it shows where the real work lies: making observability work correctly on customers' systems.

For most FDEs, the real test comes after the customer is already on Datadog. A request is slow, everyone in the meeting looks at you, and you have to go from a trace all the way to the one log line that explains the problem. Here's that workflow, plus a five-minute check that many people skip.

Every request leaves a trace

Datadog's APM tutorial starts simple. Each time you run a curl command against the sample app, a new trace is sent to Datadog and can be opened in the Traces view. Select a trace and you'll see its details, including the flame graph. According to Datadog's documentation, the flame graph is exactly where you locate performance bottlenecks.

The trace tells you where the time went. To know why, you need the logs. Datadog connects the two by injecting trace IDs and span IDs into logs as attributes. The trace's log panel offers four filters: trace_id, host, container_id, and pod_name. Only the trace_id filter narrows the view down to log lines carrying that request ID.

A slow request nobody can explain

Imagine you've just deployed an integration into a customer's system. On day three, the customer reports that some requests passing through your service take a long time to return. Their team suspects your component is at fault, and you have no evidence to prove otherwise.

You open Traces, pick a slow trace for that endpoint, and look at the flame graph. Suppose most of the time is spent calling one of the customer's internal services, not your code. You open the trace_id filter in the log panel to see what was logged for this request, and the panel is empty.

Many people conclude at this point that the request simply wasn't logged. Usually the logs exist; Datadog just doesn't know which trace they belong to.

The five-minute check before the meeting

Send a sample request yourself, just like the curl command in Datadog's tutorial, then open the log lines it produced. Ask only one question: does this log line carry a trace ID? Datadog's troubleshooting documentation is blunt: logs without a trace ID won't appear under a trace.

Suppose the customer service's log lines look like this, with the ID stored under a custom field name:

{"level":"warn","msg":"上游超时,重试 3/3","traceId":"<id>"}

In that case, Datadog's documentation requires you to extract the ID and remap it to trace_id, the attribute Datadog reserves for this purpose.

If you're building the instrumentation from scratch, get the field names right from the start. The OpenTelemetry specification is a vendor-neutral standard that requires JSON logs and other non-OTLP formats to use trace_id and span_id fields, written in lowercase hexadecimal.

The slowest span isn't necessarily the culprit

Once the logs are correlated, you may see a stream of retries and timeout messages. Stay clear-headed here: the customer's internal service may be slow precisely because your requests sent it too many retries, which would put the problem back on your side.

The flame graph gives you the timing; the logs give you the context behind it. Bring both into the meeting, and the discussion shifts from "whose fault is it" to "where do we fix it."

What to learn first, and what to put on your resume

Start with the sample app in the APM tutorial and practice reading flame graphs until you can spot a suspicious span within seconds. Then learn to correlate traces with logs, including the remapping steps for when field names don't match the standard. Then learn OpenTelemetry's conventions, because they're central to the FDE role Dash0 is hiring for and will be useful at any customer.

When reading job postings, figure out what the day-to-day work actually is. Advising on deployments the way Datadog does is very different from installing instrumentation hands-on the way Dash0 does. Also factor in frequent travel requirements.

Datadog's secondment model also offers a way to test the waters. If you're an SWE or TSE at a company with a similar rotation program, applying for a rotation lets you experience FDE work without changing jobs.

Don't just write "proficient in Datadog" on your resume. Write specific cases: which system you instrumented, how you correlated traces with logs, and, if you measured it, how much you reduced time to find bugs.

No matter how good the observability tools are, traces still break at the boundary between two teams. The person who can open that log line at the boundary is exactly who customers want to keep.

Was this article helpful?

Thanks for your feedback!

Next on the roadmap · Phase 5: Deploy to production Zarf originated with US Navy research and packs offline installs into a single file, bundling images, Helm charts, and configs together and verifying them before crossing the boundary; the more your customers are concentrated in heavily regulated industries, the more this matters.