🌐 AI搜索 & 代理 主页
Skip to content

.net 6 meters tags are ignored by meter adapter #359

@paveldayneko

Description

@paveldayneko

It seems like meter adapter completely ignores tags provided by .net 6 meters.

private void OnCounterMeasurement(Instrument instrument, double measurement, ReadOnlySpan<KeyValuePair<string, object?>> tags, object? state)
{
_counter.WithLabels(instrument.Meter.Name, instrument.Name, instrument.Unit ?? "", instrument.Description ?? "").Inc(measurement);
}

Is it done by purpose?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions