// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0

// <auto-generated>This file has been auto generated from 'src\OpenTelemetry.SemanticConventions\scripts\templates\registry\SemanticConventionsAttributes.cs.j2' </auto-generated>

#nullable enable

#pragma warning disable CS1570 // XML comment has badly formed XML

namespace OpenTelemetry.SemanticConventions;

/// <summary>
/// Constants for semantic attribute names outlined by the OpenTelemetry specifications.
/// </summary>
public static class MessageAttributes
{
    /// <summary>
    /// Deprecated, use <c>rpc.message.compressed_size</c> instead.
    /// </summary>
    [Obsolete("Replaced by <c>rpc.message.compressed_size</c>.")]
    public const string AttributeMessageCompressedSize = "message.compressed_size";

    /// <summary>
    /// Deprecated, use <c>rpc.message.id</c> instead.
    /// </summary>
    [Obsolete("Replaced by <c>rpc.message.id</c>.")]
    public const string AttributeMessageId = "message.id";

    /// <summary>
    /// Deprecated, use <c>rpc.message.type</c> instead.
    /// </summary>
    [Obsolete("Replaced by <c>rpc.message.type</c>.")]
    public const string AttributeMessageType = "message.type";

    /// <summary>
    /// Deprecated, use <c>rpc.message.uncompressed_size</c> instead.
    /// </summary>
    [Obsolete("Replaced by <c>rpc.message.uncompressed_size</c>.")]
    public const string AttributeMessageUncompressedSize = "message.uncompressed_size";

    /// <summary>
    /// Deprecated, use <c>rpc.message.type</c> instead.
    /// </summary>
    public static class MessageTypeValues
    {
        /// <summary>
        /// sent.
        /// </summary>
        [Obsolete("Replaced by <c>rpc.message.type</c>.")]
        public const string Sent = "SENT";

        /// <summary>
        /// received.
        /// </summary>
        [Obsolete("Replaced by <c>rpc.message.type</c>.")]
        public const string Received = "RECEIVED";
    }
}
