Replies: 1 comment
-
|
Hi @hverlin, thanks for trying out orchestrion. Right now using automatic instrumentation it is not possible to change this behavior. The current orchestrion instrumentation around an A URL quantizer has been recently introduced in dd-trace-go#3471 that could be leveraged in a future In the meantime, if you'd like to rename the resources of the span you'd need to manually instrument your code by wrapping the client used by the GitLab client. To do so you'd need to follow those steps:
Let me know if this solution works for you. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a service with the following code, which relies on gitlab.com/gitlab-org/api/client-go
The
GetFilefunction in the GitLab go client wraps the http client which is being instrumented:https://gitlab.com/gitlab-org/api/client-go/-/blob/0034e1e813b95c313302c9fe0ac703a904e9f6bd/repository_files.go#L95
The issue is that each request to GitLab shows up as a different resource in Datadog instead of being normalized like
GET /v4/api/projects/:id/repository/files/:file.It makes sense that the instrumentation cannot detect which path segments are parameters or not. However, the default behavior is causing an issue: it creates one resource name per URL called, making the endpoints list not very useful.
Is there a way to either:
//orchestrion:ignoredoes not seem to work)DD_APM_REPLACE_TAGSin the agent)?Thank you!
Beta Was this translation helpful? Give feedback.
All reactions