Skip to content

Resolve signature ambiguity in MetricsEmitter #5347

Description

@bitsandfoxes

Coming from Unity and C# 9 I observed an

Ambiguous invocation.
Candidates are:
    EmitCounter<int>(string, int, IEnumerable<KeyValuePair<string,object>>?, Scope?)
    EmitCounter<int>(string, int, ReadOnlySpan<KeyValuePair<string,object>>, Scope?)
    all from class SentryMetricEmitter

Based on The History of C# this problem exists for projects using C# 13 (resolution priority) or older.

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETPull requests that update .net codeImprovementMetricspublic APIAdditions/modifications to, or removals from, the public API surface area.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions