Skip to content

Possibly use IMeterFactory when targeting net8.0 #5187

Open

Description

@roji

Activity

  1. added this to the 8.0.0 milestone on Aug 4, 2023
  2. self-assigned this
    on Aug 4, 2023
  3. WhatzGames commented on Sep 21, 2023

    @WhatzGames
  4. changed the title [-]Possibly use IMeterFactory when targetin net8.0[/-] [+]Possibly use IMeterFactory when targeting net8.0[/+] on Nov 7, 2023
  5. roji commented on Nov 8, 2023

    @roji
    MemberAuthor

    Briefly discussed with @noahfalk a while ago...

    Doing this means having multiple IMeterFactories - one per data source - each instantiating its own version of each meter; for example, there would be multiple meters with the name db.client.connections.usage, each reporting information for the connections used for its data source. Note that measurements emitted by these different meters can still be distinguished and correlated with their data source, as the data source identifier (configured name or connection string) is emitted as a dimension.

    As long as metrics are non-observable, this should work fine, but observable ones (which we do have) could be problematic. This is something we'll have to carefully look at.

    The underlying problem is that the source of metrics (data source) isn't a singleton, like Kestrel is for web. In theory, if we wanted to provide a totally application-global, aggregate set of metrics for all data sources, that would be static and could easily use IMeterFactory. But as things are, I'm not sure how this will work.

    Moving out to 9.0.

  6. modified the milestones: 8.0.0, 9.0.0 on Nov 8, 2023
  7. modified the milestones: 9.0.0, 10.0.0 on Oct 21, 2024
  8. modified the milestones: 10.0.0, 11.0.0 on Oct 1, 2025
  9. modified the milestones: 11.0.0, 12.0.0 on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions