Comments (11)
Hi @pierrre,
Thanks for the report and all the details!
The issue is now fixed on your account.
For context, the issue was that the type of this service used to be reported with SetServiceInfo
. As this is a user-reported value we give it precedence over the span.type
(which is usually automatic from the integrations). As a result, we still had the monitor
type for this service.
We cleared this value. The system now picked web
which is the type reported by your mongodb-current-op
traces.
If you have similar services which used SetServiceInfo
and that you want to update its type, we suggest your to update it with SetServiceInfo
(might require an Agent restart). Once updated (or for new services), you can simply rely on the span.type
.
from dd-trace-go.
ok, thank you for your help ! 👍
from dd-trace-go.
Hello @pierrre ! in order to let our backend identify if that Span
is a web request (or in general, the apdex must be computed), we need to provide the service metadata info. Actually we provide two different approaches:
- [deprecated, will be removed in newer releases]: you can use our API (so not OpenTracing) to call the
SetServiceInfo
. This is an example for gin. In that case, what is important is saying that theservice
(the name you provided) for the appgin-gonic/gin
(it's UI sugar) is of typeext.AppTypeWeb
(activates apdex for this service and spans) - [requires Datadog Agent 5.21.1+]: it's enough that your spans (especially root spans) set the
Span.Type
field. In the case of OpenTracing you can just:
span.SetTag("span.type", "web") // it automatically sets the underlying field
Let me know if it helps!
from dd-trace-go.
it's enough that your spans (especially root spans) set the Span.Type field.
That's what I thought. (but I wasn't sure)
I'll check that.
Thanks !
from dd-trace-go.
@pierrre you're welcome! let us know if it doesn't work as expected!
from dd-trace-go.
I did the second solution
[requires Datadog Agent 5.21.1+]: it's enough that your spans (especially root spans) set the Span.Type field
I did exactly span.SetTag("span.type", "web")
I also updated my agent to 5.21.2
.
But it's not yet working.
Should I wait some time ?
from dd-trace-go.
@pierrre let me check from our side what we're receiving. The code you wrote is correct and it should trigger this call https://github.com/DataDog/dd-trace-go/blob/master/opentracing/span.go#L63-L66 (assuming you're using the OpenTracing Tracer).
from dd-trace-go.
In my code, i'm calling this function for my root span
span.SetTag(ddtrace_opentracing.SpanType, "web")
so I think it is calling https://github.com/DataDog/dd-trace-go/blob/master/opentracing/span.go#L63-L66
BTW, I'm currently using revision 6ba9d7ab13ac75d2b739571566f30e4d3ebe39e9
.
I'm also using the latest Agent:
======================
Trace Agent (v 5.21.2)
======================
I think that the span type is correctly set, because my span is displayed with an earth/world icon. (previously it was a gears icon)
However, I can still not enable apdex as mentioned here https://help.datadoghq.com/hc/en-us/articles/115003346666-How-to-configure-an-Apdex-for-your-traces-with-Datadog-APM-
It is not available instead of latency.
Should I contact your support instead ?
Or can I give you my account if you want to check (email? organization? project?)
from dd-trace-go.
@pierrre yes in that case the library is behaving correctly but maybe there is something else that is missing. Can you give me your organization name? I can help you with that without entering our support pipeline (that anyway is very good and active :) )
from dd-trace-go.
@pierrre just to be 100% sure, if you access to your service (where we list your resources/endpoints for the given service) and you click the Latency dropdown, you don't see Apdex? if yes, you may see some values (probably it would be 1.0 for a staging env with low traffic).
from dd-trace-go.
Can you give me your organization name
It is SendinBlue
, and my login is [email protected]
.
And the service name is mongodb-current-op
click the Latency dropdown, you don't see Apdex
Actually there is no dropdown at all !
It used to work for some previous tests (maybe without opentracing)
from dd-trace-go.
Related Issues (20)
- go.mod: add support for Go v1.22.0
- Add support for custom tags to gqlgen contrib HOT 6
- [BUG] contrib/labstack/echo middlewares both call and return error HOT 8
- Add option to skip Introspection tracing HOT 4
- [BUG] Data race in tracer/payload.go HOT 2
- [BUG] Update dependencies to avoid vulnerabilities HOT 3
- [Flaky test] contrib/99designs/gqlen: TestAppSec/monitoring/basic is flaky HOT 1
- [BUG] High memory consumption/High ram usage/memory leak caused by dd-tracer-go in serverless AWS lambda HOT 8
- [BUG] data race when accessing capabilities HOT 1
- [BUG] dd fails to unmarshal rates after writing traces HOT 7
- [BUG] agent tries to connect over http when unix socket endpoint is enabled HOT 4
- [BUG] contrib/dimfeld/httptreemux.v5: trailing slash requests are redirected with raw URL being tracked HOT 1
- use fp to get goroutine traceback. HOT 2
- [BUG] Support for http.ResponseController timeouts in WrapHandler HOT 2
- [BUG] Newly introduced database/sql metrics do not send over Unix sockets HOT 3
- [BUG] dd-trace-go states that it is an Apache license, but it pulls in DataDog/datadog-agent which includes eBPF code which is GPL 2.0 licensed HOT 4
- Stats for contrib/jackc/pgxpool HOT 4
- Add option to gqlgen contrib for skipping spans for field resolvers w/o methods HOT 5
- internal/telemetry: TestProductChange/profiler_start,_tracer_start is flaky HOT 1
- Snyk is reporting CVE-2023-7104 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dd-trace-go.