docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IMetricsFactory

    Component to get or create the proper IMetrics for a given package.

    Namespace: Unity.Services.Core.Telemetry.Internal
    Assembly: Unity.Services.Core.Internal.dll
    Syntax
    public interface IMetricsFactory : IServiceComponent

    Properties

    CommonTags

    All tags shared among all metrics events generated by IMetrics created by this factory.

    Declaration
    IReadOnlyDictionary<string, string> CommonTags { get; }
    Property Value
    Type Description
    IReadOnlyDictionary<string, string>

    Methods

    Create(string)

    Create a IMetrics setup with common tags for the given packageName.

    Declaration
    IMetrics Create(string packageName)
    Parameters
    Type Name Description
    string packageName

    The name of the package that will use the created IMetrics to send metric events. Example value: "com.unity.services.core"

    Returns
    Type Description
    IMetrics

    Return a IMetrics setup with common tags for the given packageName.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)