Giter Site home page Giter Site logo

Comments (5)

rymndhng avatar rymndhng commented on June 15, 2024 2

The cirumstance where the 404s are not useful to be grouped together is because applications may implement generic routes with a different permission scheme. i.e. if I am seeing a huge number of 404s on the url pattern /foo/:id/bar/:id, I want to see the spans with 404s grouped under the same resource name /foo/:id/bar/:id instead of a catch-all 404.

from dd-trace-java.

realark avatar realark commented on June 15, 2024

@rymndhng Is this instrumentation for a server? If so how would you know which resource to associate the 404 with?

For example, if you had two endpoints /my/service and /other/service, where would you expect a request /a/bad/request to appear?

from dd-trace-java.

rymndhng avatar rymndhng commented on June 15, 2024

@realark I think I see where you're coming from. In the case where there is no tag resource.name set, it would be valuable to set resource.name to 404.

The current implementation always sets the resource.name to 404 when the response status is 404. I think it would be more reasonable to set the resource.name if it is not already set. This would users to distinguish between 404s from mismatched routes v.s. 404s returned by your application.

from dd-trace-java.

tylerbenson avatar tylerbenson commented on June 15, 2024

@rymndhng can you explain the circumstance where the 404 being returned by the application is useful to not group together?

from dd-trace-java.

randomanderson avatar randomanderson commented on June 15, 2024

Resolved with #1152

from dd-trace-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.