groups:
  - id: registry.http.deprecated
    type: attribute_group
    brief: "Describes deprecated HTTP attributes."
    prefix: http
    attributes:
      - id: method
        type: string
        brief: 'Deprecated, use `http.request.method` instead.'
        stability: experimental
        deprecated: "Replaced by `http.request.method`."
        examples: ["GET", "POST", "HEAD"]
      - id: status_code
        type: int
        brief: 'Deprecated, use `http.response.status_code` instead.'
        stability: experimental
        deprecated: "Replaced by `http.response.status_code`."
        examples: [200]
      - id: scheme
        type: string
        brief: 'Deprecated, use `url.scheme` instead.'
        stability: experimental
        deprecated: "Replaced by `url.scheme` instead."
        examples: ['http', 'https']
      - id: url
        type: string
        brief: 'Deprecated, use `url.full` instead.'
        stability: experimental
        deprecated: "Replaced by `url.full`."
        examples: ['https://www.foo.bar/search?q=OpenTelemetry#SemConv']
      - id: target
        type: string
        brief: 'Deprecated, use `url.path` and `url.query` instead.'
        stability: experimental
        deprecated: "Split to `url.path` and `url.query."
        examples: ['/search?q=OpenTelemetry#SemConv']
      - id: request_content_length
        type: int
        brief: 'Deprecated, use `http.request.header.content-length` instead.'
        stability: experimental
        deprecated: "Replaced by `http.request.header.content-length`."
        examples: 3495
      - id: response_content_length
        type: int
        brief: 'Deprecated, use `http.response.header.content-length` instead.'
        stability: experimental
        deprecated: "Replaced by `http.response.header.content-length`."
        examples: 3495
      - id: client_ip
        type: string
        stability: experimental
        deprecated: "Replaced by `client.address`."
        brief: "Deprecated, use `client.address` instead."
        examples: '83.164.160.102'
      - id: host
        type: string
        stability: experimental
        deprecated: "Replaced by one of `server.address`, `client.address` or `http.request.header.host`, depending on the usage."
        brief: "Deprecated, use one of `server.address`, `client.address` or `http.request.header.host` instead, depending on the usage."
        examples: ['www.example.org']
      - id: request_content_length_uncompressed
        stability: experimental
        deprecated: "Replaced by `http.request.body.size`."
        type: int
        brief: "Deprecated, use `http.request.body.size` instead."
        examples: 5493
      - id: response_content_length_uncompressed
        stability: experimental
        deprecated: "Replace by `http.response.body.size`."
        type: int
        brief: "Deprecated, use `http.response.body.size` instead."
        examples: 5493
      - id: server_name
        type: string
        stability: experimental
        deprecated: "Replaced by `server.address`."
        brief: "Deprecated, use `server.address` instead."
        examples: ['example.com']
      - id: flavor
        type:
          allow_custom_values: true
          members:
            - id: http_1_0
              value: '1.0'
              brief: 'HTTP/1.0'
              stability: experimental
            - id: http_1_1
              value: '1.1'
              brief: 'HTTP/1.1'
              stability: experimental
            - id: http_2_0
              value: '2.0'
              brief: 'HTTP/2'
              stability: experimental
            - id: http_3_0
              value: '3.0'
              brief: 'HTTP/3'
              stability: experimental
            - id: spdy
              value: 'SPDY'
              brief: 'SPDY protocol.'
              stability: experimental
            - id: quic
              value: 'QUIC'
              brief: 'QUIC protocol.'
              stability: experimental
        brief: 'Deprecated, use `network.protocol.name` instead.'
        deprecated: "Replaced by `network.protocol.name`."
        stability: experimental
      - id: user_agent
        type: string
        brief: 'Deprecated, use `user_agent.original` instead.'
        examples: ['CERN-LineMode/2.15 libwww/2.17b3',
                   'Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1']
        deprecated: "Replaced by `user_agent.original`."
        stability: experimental
