Code Monkey home page Code Monkey logo

Comments (7)

bcaudan avatar bcaudan commented on June 22, 2024 1

Hello,

There is in progress work to send service as a tag.
In the mean time, for logs, you can configure a remapper to set a service tag from the service attribute.

We'll ping here when it will be sent out of the box.

from browser-sdk.

xepps avatar xepps commented on June 22, 2024 1

Looks to be resolved in v1.21.0 #543

Thanks all.

from browser-sdk.

xepps avatar xepps commented on June 22, 2024

I see there is actually an open PR #501

Feel free to close this issue when you want. 👍

from browser-sdk.

pmc-a avatar pmc-a commented on June 22, 2024

@xepps did you manage to find a solution in the interim? I've tried remapping the tag to the attribute, but I'm not entirely sure if that's possible since service is a reserved attribute!

Thanks for highlighting this!

from browser-sdk.

pmc-a avatar pmc-a commented on June 22, 2024

I think I found a way to remap the service tag to a custom attribute, took the following steps in case anyone else comes across this in the future:

  • Add a new custom 'Standard Attribute' - e.g. client.application
  • Created a new 'Pipeline' with a filter targeting source:browser
  • Created a 'Remapper' processor which remaps the tag service to the new custom attribute client.application

I was then able to filter by this in the standard log explorer. Hopefully this helps anyone who comes up against the same issue!

from browser-sdk.

KarlKl avatar KarlKl commented on June 22, 2024

I'm using the datadog-logs.js v1.18.1 and it still doesn't work.
It worked in the NPM package v1.12.10 if it is specified in the global context, I don't know whether it works in newer npm package versions.

from browser-sdk.

xepps avatar xepps commented on June 22, 2024

Thanks @bcaudan. Looking forward to the update 👍

from browser-sdk.

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.