cmkishores
07/02/2021, 5:00 AMopentelemetry-instrument python manage.py runserver --noreload
You are using Python 3.6. This version does not support timestamps with nanosecond precision and the OpenTelemetry SDK will use millisecond precision instead. Please refer to PEP 564 for more information. Please upgrade to Python 3.7 or newer to use nanosecond precision.
Instrumenting of django failed
Traceback (most recent call last):
File "/home/cmkishores/.virtualenvs/entri/lib/python3.6/site-packages/opentelemetry/instrumentation/auto_instrumentation/sitecustomize.py", line 81, in _load_instrumentors
distro.load_instrumentor(entry_point, skip_dep_check=True)
File "/home/cmkishores/.virtualenvs/entri/lib/python3.6/site-packages/opentelemetry/instrumentation/distro.py", line 63, in load_instrumentor
instrumentor().instrument(**kwargs)
File "/home/cmkishores/.virtualenvs/entri/lib/python3.6/site-packages/opentelemetry/instrumentation/instrumentor.py", line 106, in instrument
**kwargs
File "/home/cmkishores/.virtualenvs/entri/lib/python3.6/site-packages/opentelemetry/instrumentation/django/__init__.py", line 132, in _instrument
settings_middleware = getattr(settings, "MIDDLEWARE", [])
File "/home/cmkishores/.virtualenvs/entri/lib/python3.6/site-packages/django/conf/__init__.py", line 79, in __getattr__
self._setup(name)
File "/home/cmkishores/.virtualenvs/entri/lib/python3.6/site-packages/django/conf/__init__.py", line 64, in _setup
% (desc, ENVIRONMENT_VARIABLE))
django.core.exceptions.ImproperlyConfigured: Requested setting MIDDLEWARE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
Failed to auto initialize opentelemetry
Traceback (most recent call last):
File "/home/cmkishores/.virtualenvs/entri/lib/python3.6/site-packages/opentelemetry/instrumentation/auto_instrumentation/sitecustomize.py", line 111, in initialize
_load_instrumentors(distro)
File "/home/cmkishores/.virtualenvs/entri/lib/python3.6/site-packages/opentelemetry/instrumentation/auto_instrumentation/sitecustomize.py", line 85, in _load_instrumentors
raise exc
File "/home/cmkishores/.virtualenvs/entri/lib/python3.6/site-packages/opentelemetry/instrumentation/auto_instrumentation/sitecustomize.py", line 81, in _load_instrumentors
distro.load_instrumentor(entry_point, skip_dep_check=True)
File "/home/cmkishores/.virtualenvs/entri/lib/python3.6/site-packages/opentelemetry/instrumentation/distro.py", line 63, in load_instrumentor
instrumentor().instrument(**kwargs)
File "/home/cmkishores/.virtualenvs/entri/lib/python3.6/site-packages/opentelemetry/instrumentation/instrumentor.py", line 106, in instrument
**kwargs
File "/home/cmkishores/.virtualenvs/entri/lib/python3.6/site-packages/opentelemetry/instrumentation/django/__init__.py", line 132, in _instrument
settings_middleware = getattr(settings, "MIDDLEWARE", [])
File "/home/cmkishores/.virtualenvs/entri/lib/python3.6/site-packages/django/conf/__init__.py", line 79, in __getattr__
self._setup(name)
File "/home/cmkishores/.virtualenvs/entri/lib/python3.6/site-packages/django/conf/__init__.py", line 64, in _setup
% (desc, ENVIRONMENT_VARIABLE))
django.core.exceptions.ImproperlyConfigured: Requested setting MIDDLEWARE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
/home/cmkishores/.virtualenvs/entri/lib/python3.6/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <<http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>>.
""")
Performing system checks...
I hope someone can share an insight. 🙂Pranay
Pranay
Pranay
Pranay
cmkishores
07/02/2021, 8:32 AMcmkishores
07/02/2021, 8:41 AMOTEL_RESOURCE_ATTRIBUTES=service.name=entri-main-service OTEL_EXPORTER_OTLP_ENDPOINT="<http://localhost:4317>" opentelemetry-instrument ./manage.py runserver --noreload
this to run the server for my projectPranay
Pranay
cmkishores
07/02/2021, 11:38 AMcmkishores
07/02/2021, 11:39 AMcmkishores
07/02/2021, 11:39 AM`
Ankit Nayan
python manage.py runserver --noreload
?Ankit Nayan
export DJANGO_SETTINGS_MODULE=mysite.settings
as given in https://stackoverflow.com/a/26089302/3243212cmkishores
07/02/2021, 6:44 PMcmkishores
07/02/2021, 6:45 PM