Skip to content

feat(contrib/net/http): new orchestrion http ResourceNamer with quantization#3545

Merged
dd-mergequeue[bot] merged 2 commits into
mainfrom
ben.db/APMAPI-1418-change-orchestrion-http-client-resource-namer
Aug 21, 2025
Merged

feat(contrib/net/http): new orchestrion http ResourceNamer with quantization#3545
dd-mergequeue[bot] merged 2 commits into
mainfrom
ben.db/APMAPI-1418-change-orchestrion-http-client-resource-namer

Conversation

@genesor

@genesor genesor commented May 23, 2025

Copy link
Copy Markdown
Member

What does this PR do?

Leverage the newly introduced Quantizer in the Orchestrion HTTP client to have generic looking resource names in spans.

DD_TRACE_HTTP_CLIENT_RESOURCE_NAME_QUANTIZE & DD_TRACE_HTTP_HANDLER_RESOURCE_NAME_QUANTIZE now allows users to have quantization applied to the URL when using orchestrion.

Motivation

We had a question from an orchestrion user asking us how they could customize the resource name. It is not currently possible with orchestrion to customize the RoundTripperConfig so providing users with a better ResourceNamer would makes things a bit better.

GET /v4/api/projects/1234/repository/files/my-file => GET /v4/api/projects/*/repository/files/*

Reviewer's Checklist

  • Changed code has unit tests for its functionality at or near 100% coverage.
  • System-Tests covering this feature have been added and enabled with the va.b.c-dev version tag.
  • There is a benchmark for any new code, or changes to existing code.
  • If this interacts with the agent in a new way, a system test has been added.
  • New code is free of linting errors. You can check this by running golangci-lint run locally.
  • Add an appropriate team label so this PR gets put in the right place for the release notes.
  • Non-trivial go.mod changes, e.g. adding new modules, are reviewed by @DataDog/dd-trace-go-guild.

Unsure? Have a question? Request a review!

@genesor
genesor requested review from a team as code owners May 23, 2025 12:29
@github-actions github-actions Bot added the apm:ecosystem contrib/* related feature requests or bugs label May 23, 2025
@genesor genesor changed the title Add URL Quantizer to Orchestrion http client ResourceNamer contrib/net/http: update orchestrion http client ResourceNamer May 26, 2025
@genesor
genesor requested a review from a team as a code owner May 26, 2025 11:32
@pr-commenter

pr-commenter Bot commented May 26, 2025

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2025-08-19 14:08:29

Comparing candidate commit 08b4546 in PR branch ben.db/APMAPI-1418-change-orchestrion-http-client-resource-namer with baseline commit 547cf8f in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 24 metrics, 0 unstable metrics.

@genesor
genesor marked this pull request as draft May 26, 2025 11:49
@genesor
genesor marked this pull request as ready for review May 27, 2025 13:33
@genesor
genesor force-pushed the ben.db/APMAPI-1418-change-orchestrion-http-client-resource-namer branch 2 times, most recently from 67d52ff to 1dff235 Compare August 14, 2025 19:14
@genesor
genesor marked this pull request as draft August 19, 2025 08:58
@genesor
genesor force-pushed the ben.db/APMAPI-1418-change-orchestrion-http-client-resource-namer branch from 1dff235 to 2e29629 Compare August 19, 2025 13:47
@genesor genesor changed the title contrib/net/http: update orchestrion http client ResourceNamer feat(contrib/net/http): new orchestrion http ResourceNamer with quantization Aug 19, 2025
@genesor
genesor marked this pull request as ready for review August 19, 2025 14:25
@genesor

genesor commented Aug 21, 2025

Copy link
Copy Markdown
Member Author

/merge

@dd-devflow-routing-codex

dd-devflow-routing-codex Bot commented Aug 21, 2025

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2025-08-21 14:42:08 UTC ℹ️ Start processing command /merge


2025-08-21 14:42:21 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in main is approximately 14m (p90).


2025-08-21 14:55:10 UTC ℹ️ MergeQueue: This merge request was merged

@dd-mergequeue
dd-mergequeue Bot merged commit ca09c87 into main Aug 21, 2025
222 checks passed
@dd-mergequeue
dd-mergequeue Bot deleted the ben.db/APMAPI-1418-change-orchestrion-http-client-resource-namer branch August 21, 2025 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apm:ecosystem contrib/* related feature requests or bugs mergequeue-status: done

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants