Giter Site home page Giter Site logo

Comments (5)

mrstebo avatar mrstebo commented on May 28, 2024 3

I had the exact requirements for this kind of thing. So I created a separate enricher that you can add if you need it.

https://github.com/ekmsystems/serilog-enrichers-correlation-id

But as has already been mentioned, this is probably not the scope of this particular project. So better to leave it as an another dependency of your own project 👍

from classic.

nblumhardt avatar nblumhardt commented on May 28, 2024

Hi @asierrollograbe - thanks for the suggestion. Given the different semantics in your scenario - you're propagating activity is, not collecting a single unique id for the handling of a single HTTP request - would it be reasonable to just create a new, custom, ActivityIdEnricher for this? Cheers!

from classic.

asierrollograbe avatar asierrollograbe commented on May 28, 2024

Thank you for your suggestion
Wouldn’t it be interesting to have this functionality in the library? It seems to be a common scenario, I’m sure it will be useful.
Would there be any problem if I update the project with my solution?
Kind regards.

from classic.

nblumhardt avatar nblumhardt commented on May 28, 2024

Propagating correlation ids like this is definitely interesting and worthwhile, but I think this project should stick a bit closer to the raw HTTP request handling infrastructure rather than add anything higher-level.

Would a possible alternative be:

    Enrich.WithHttpHeader("X-Some-Header", "PropertyName")

This would fit with the goals here, and hopefully cover the ActivityId scenario cleanly, too. What do you think?

from classic.

asierrollograbe avatar asierrollograbe commented on May 28, 2024

Thanks mrstebo , it's very useful to me.

from classic.

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.