Nel Attributes

6 attributes in this category.5 stable·1 deprecated

6 attributes

Stable Attributes

nel.elapsed_time

integerScrub: ManualVisibility: PublicOTel: False

The elapsed number of milliseconds between the start of the resource fetch and when it was completed or aborted by the user agent.

Example100
Changelog
v0.4.0#228
v0.1.0#68
Raw JSON
{
  "key": "nel.elapsed_time",
  "brief": "The elapsed number of milliseconds between the start of the resource fetch and when it was completed or aborted by the user agent.",
  "type": "integer",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": 100,
  "changelog": [
    {
      "version": "0.4.0",
      "prs": [
        228
      ]
    },
    {
      "version": "0.1.0",
      "prs": [
        68
      ]
    }
  ]
}

nel.phase

stringScrub: ManualVisibility: PublicOTel: False

If request failed, the phase of its network error. If request succeeded, "application".

Exampleapplication
Changelog
v0.1.0#68#127
Raw JSON
{
  "key": "nel.phase",
  "brief": "If request failed, the phase of its network error. If request succeeded, \"application\".",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": "application",
  "changelog": [
    {
      "version": "0.1.0",
      "prs": [
        68,
        127
      ]
    }
  ]
}

nel.referrer

stringScrub: AutoVisibility: PublicOTel: False

request's referrer, as determined by the referrer policy associated with its client.

Examplehttps://example.com/foo?bar=baz
Changelog
v0.1.0#68#127
Raw JSON
{
  "key": "nel.referrer",
  "brief": "request's referrer, as determined by the referrer policy associated with its client.",
  "type": "string",
  "apply_scrubbing": {
    "key": "auto"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": "https://example.com/foo?bar=baz",
  "changelog": [
    {
      "version": "0.1.0",
      "prs": [
        68,
        127
      ]
    }
  ]
}

nel.sampling_fraction

doubleScrub: ManualVisibility: PublicOTel: False

The sampling fraction used to determine if the request should be sampled.

Examples0.5
Changelog
v0.26.0#668Added nel.sampling_fraction attribute
Raw JSON
{
  "key": "nel.sampling_fraction",
  "brief": "The sampling fraction used to determine if the request should be sampled.",
  "type": "double",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "examples": [
    0.5
  ],
  "alias": [
    "nel.sampling_function"
  ],
  "changelog": [
    {
      "version": "0.26.0",
      "prs": [
        668
      ],
      "description": "Added nel.sampling_fraction attribute"
    }
  ]
}

nel.type

stringScrub: ManualVisibility: PublicOTel: False

If request failed, the type of its network error. If request succeeded, "ok".

Exampledns.unreachable
Changelog
v0.1.0#68#127
Raw JSON
{
  "key": "nel.type",
  "brief": "If request failed, the type of its network error. If request succeeded, \"ok\".",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": "dns.unreachable",
  "changelog": [
    {
      "version": "0.1.0",
      "prs": [
        68,
        127
      ]
    }
  ]
}

Deprecated Attributes

These attributes are deprecated and should not be used in new code. See each attribute for migration guidance.

nel.sampling_functionDeprecated

doubleScrub: ManualVisibility: PublicOTel: False

The sampling function used to determine if the request should be sampled.

Example0.5

Use nel.sampling_fraction instead.

The correct name of this attribute is nel.sampling_fraction

Status: backfill

Changelog
v0.26.0#668Deprecated in favor of nel.sampling_fraction
v0.4.0#228
v0.1.0#68
Raw JSON
{
  "key": "nel.sampling_function",
  "brief": "The sampling function used to determine if the request should be sampled.",
  "type": "double",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": 0.5,
  "deprecation": {
    "replacement": "nel.sampling_fraction",
    "reason": "The correct name of this attribute is nel.sampling_fraction",
    "_status": "backfill"
  },
  "alias": [
    "nel.sampling_fraction"
  ],
  "changelog": [
    {
      "version": "0.26.0",
      "prs": [
        668
      ],
      "description": "Deprecated in favor of nel.sampling_fraction"
    },
    {
      "version": "0.4.0",
      "prs": [
        228
      ]
    },
    {
      "version": "0.1.0",
      "prs": [
        68
      ]
    }
  ]
}