Skip to content

[instrumentation-django] - empty span name #1098

@shaykeren

Description

@shaykeren

Describe your environment
opentelemetry-instrumentation-django==0.30b1
django==4.0.4

Steps to reproduce
Having the following URL patterns:
`from django.urls import path
from . import views

urlpatterns = [
path('', views.index, name='index'),
path('list', views.list, name='list'),
]`
Please note that the path route has an empty value.

What is the expected behavior?
The expected behavior is not having an empty span name for this endpoint.
Also, consider returning http.route attribute with value '/'

What is the actual behavior?

  • Got an empty span name
  • No http.route attribute returned

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions