Django Attributes

2 attributes in this category.2 deprecated

2 attributes

Deprecated Attributes

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

django.function_nameDeprecated

stringScrub: ManualVisibility: PublicOTel: False

The fully qualified name of a function used in a Django context.

Examplesdjango.contrib.sessions.middleware.SessionMiddleware

Use code.function.name instead.

This attribute is being deprecated in favor of code.function.name, which is the framework-agnostic replacement.

Status: backfill

Changelog
v0.19.0#538Added django.function_name attribute
Raw JSON
{
  "key": "django.function_name",
  "brief": "The fully qualified name of a function used in a Django context.",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "examples": [
    "django.contrib.sessions.middleware.SessionMiddleware"
  ],
  "deprecation": {
    "replacement": "code.function.name",
    "reason": "This attribute is being deprecated in favor of code.function.name, which is the framework-agnostic replacement.",
    "_status": "backfill"
  },
  "alias": [
    "code.function.name",
    "code.function"
  ],
  "changelog": [
    {
      "version": "0.19.0",
      "prs": [
        538
      ],
      "description": "Added django.function_name attribute"
    }
  ]
}

django.middleware_nameDeprecated

stringScrub: ManualVisibility: PublicOTel: False

The name of the Django middleware.

ExamplesAuthenticationMiddleware

Use middleware.name instead.

This attribute is being deprecated in favor of middleware.name, which is the framework-agnostic replacement.

Status: backfill

Changelog
v0.19.0#520Added django.middleware_name attribute
Raw JSON
{
  "key": "django.middleware_name",
  "brief": "The name of the Django middleware.",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "examples": [
    "AuthenticationMiddleware"
  ],
  "deprecation": {
    "replacement": "middleware.name",
    "reason": "This attribute is being deprecated in favor of middleware.name, which is the framework-agnostic replacement.",
    "_status": "backfill"
  },
  "alias": [
    "middleware.name"
  ],
  "changelog": [
    {
      "version": "0.19.0",
      "prs": [
        520
      ],
      "description": "Added django.middleware_name attribute"
    }
  ]
}