stevejgordon / CorrelationId

An ASP.NET Core middleware component which synchronises a correlation ID for cross API request logging.
MIT License
558 stars 106 forks source link

Consider adding correlation id provider #24

Closed MorganPeat closed 4 years ago

MorganPeat commented 6 years ago

It would be nice if the correlation id could be something other than a guid, a user-provided (for example) ICorrelationIdProvider could support this as an optional extra.

MorganPeat commented 6 years ago

(I'm happy to submit a PR if this idea is worth considering)

stevejgordon commented 6 years ago

Hi @MorganPeat. I've had similar requests from a few people and I agree this could be more open to extension and customisation. I'm currently re-thinking the overall design and architecture to try and open this up for the next release. I'll include this as something to include in that design.