Configuring restricted APP_NAME pattern leads to 500 during runtime.
See original GitHub issueI configured a restricted pattern for the APP_NAME
containing an *
leading to a Server Error with following exception. This prevents a Django app from working properly when the APP_NAME
is misconfigured.
Unable to process log entry: 'DjangoClient' object has no attribute 'filter_exception_types_dict'
Traceback (most recent call last):
File "/Users/simitt/.pyenv/versions/django-test-3.6.2/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/Users/simitt/.pyenv/versions/django-test-3.6.2/lib/python3.6/site-packages/django/utils/deprecation.py", line 138, in __call__
response = self.process_request(request)
File "/Users/simitt/.pyenv/versions/django-test-3.6.2/lib/python3.6/site-packages/elasticapm/contrib/django/middleware/__init__.py", line 157, in process_request
self.client.begin_transaction("request")
File "/Users/simitt/.pyenv/versions/django-test-3.6.2/lib/python3.6/site-packages/elasticapm/base.py", line 442, in begin_transaction
self.instrumentation_store.begin_transaction(transaction_type)
AttributeError: 'DjangoClient' object has no attribute 'instrumentation_store'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/simitt/.pyenv/versions/django-test-3.6.2/lib/python3.6/site-packages/elasticapm/contrib/django/handlers.py", line 59, in actually_do_stuff
client.capture('Exception', exc_info=exc_info, request=request)
File "/Users/simitt/.pyenv/versions/django-test-3.6.2/lib/python3.6/site-packages/elasticapm/contrib/django/client.py", line 200, in capture
result = super(DjangoClient, self).capture(event_type, **kwargs)
File "/Users/simitt/.pyenv/versions/django-test-3.6.2/lib/python3.6/site-packages/elasticapm/base.py", line 279, in capture
data = self.build_msg_for_logging(event_type, data, date, extra, stack, **kwargs)
File "/Users/simitt/.pyenv/versions/django-test-3.6.2/lib/python3.6/site-packages/elasticapm/base.py", line 178, in build_msg_for_logging
if self._filter_exception_type(result):
File "/Users/simitt/.pyenv/versions/django-test-3.6.2/lib/python3.6/site-packages/elasticapm/base.py", line 332, in _filter_exception_type
if exc_type in self.filter_exception_types_dict:
AttributeError: 'DjangoClient' object has no attribute 'filter_exception_types_dict'
I am testing with Django-1.11.5 and python 3.6.2.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Limits and configuration reference guide - Azure Logic Apps
This reference guide describes the limits and configuration information for Azure Logic Apps and related resources. Based on your scenario, ...
Read more >Common Application Properties - Spring
Name Description Default...
spring.cassandra.config Location of the configuration file to use.
spring.cassandra.controlconnection.timeout Timeout to use for control queries. 5s
spring.cassandra.keyspace‑name Keyspace name to use.
Read more >Configuration - Spark 3.3.1 Documentation - Apache Spark
Dynamically Loading Spark Properties; Viewing Spark Properties ... If set, PySpark memory for an executor will be limited to this amount.
Read more >Agents - Configuration File Reference | Consul
You can create one or more files to configure the Consul agent on startup. We recommend grouping similar configurations into separate files, such...
Read more >SAP Application Router - AppRouter - SAP Blogs
XSUAA session timeout (cannot be configured) – limited in CF for 30 minutes. This the time that session on XSUAA is alive from...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry for the long wait on this @simitt!
The problem is, we’re a library, not an app. I really want to avoid taking down a user’s website because they forgot to set the
ELASTIC_APM_APP_NAME
environment variable in production.