-
Notifications
You must be signed in to change notification settings - Fork 247
Errors with large URLs #988
Description
Describe your environment. Describe any aspect of your environment relevant to the problem, including your Python version, platform, version numbers of installed dependencies, information about your cloud hosting provider, etc. If you're reporting a problem with a specific version of a library in this repo, please check whether the problem has been fixed on master.
Python 3.8
Django 2.1
opencensus-ext-azure==1.0.4
opencensus-ext-django==0.7.2
App is running on a linux container on an Linux VM in Azure and intergrated with AzureAppInsights.
Steps to reproduce.
Describe exactly how to reproduce the error. Include a code sample if applicable.
Error occurs when reporting on requests a large URI.
What is the expected behavior?
What did you expect to see?
Request logged in AI, or at least dropped and app continues to run cleanly and error in AI.
What is the actual behavior?
What did you see instead?
DJANGO Logs:
Data drop 400: 100: Field 'url' on type 'RequestData' is too long. Expected: 2048 characters, Actual: 3701 {'iKey': , 'tags': {'ai.cloud.role': 'manage.py', 'ai.cloud.roleInstance': , 'ai.device.id': , 'ai.device.locale': 'en_US', 'ai.device.osVersion': '#1 SMP Tue Aug 25 17:23:54 UTC 2020', 'ai.device.type': 'Other', 'ai.internal.sdkVersion': 'py3.6.12:oc0.7.11:ext1.0.4', 'ai.operation.id': 'fcbe18bf6ca9036aa4546af171f3e877', 'ai.operation.name': 'GET /<my_url>/'}, 'time': '2020-12-15T17:58:36.498868Z', 'name': 'Microsoft.ApplicationInsights.Request', 'data': {'baseData': {'id': '116a0658b513bdb9', 'duration': '0.00:00:00.096', 'responseCode': '200', 'success': True, 'properties': {'request.name': 'GET /<my_url>/', 'request.url': 'https:///<my_url>/?=my_very_long_query_string', 'django.user.id': '90', 'django.user.name': '100044505'}, 'ver': 2, 'name': 'GET /<my_url>/', 'url': 'https:///<my_url>/?=my_very_long_query_string', 'source': None, 'measurements': None}, 'baseType': 'RequestData'}, 'ver': 1, 'sampleRate': None, 'seq': None, 'flags': None}.
We also see this repeating in the logs.
Queue is full. Dropping telemetry.
Queue is full. Dropping telemetry.
Queue is full. Dropping telemetry.
Queue is full. Dropping telemetry.
Queue is full. Dropping telemetry.
Queue is full. Dropping telemetry.
The app hangs up.
Additional context.
Add any other context about the problem here.
Stack Overflow Question:
https://stackoverflow.com/questions/65313480/django-opencensus-url-field-in-request-data-too-long