You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hence, in the debug logs you won't see the correct values when this code is run -
# Exponential backoff loopattempt=0delay=self.base_delaywhileTrue:
attempt+=1try:
response=self._client.post(url=self.endpoint, headers=headers, json=payload)
# If the response is successful, break out of the loopifresponse.status_code<300:
logger.debug(f"Exported {len(traces)} traces, {len(spans)} spans")
return
Solution
Updating the above code snippet with the following solves the issue -
you're totally right. I think it might be better to just log the total number of spans+logs instead of doing this isinstance. Feel free to make a PR, or I can do so later.
you're totally right. I think it might be better to just log the total number of spans+logs instead of doing this isinstance. Feel free to make a PR, or I can do so later.
Issue
In the
export
method inprocessor.py
the following code lines do not update thetraces
andspans
variables -Hence, in the debug logs you won't see the correct values when this code is run -
Solution
Updating the above code snippet with the following solves the issue -
The text was updated successfully, but these errors were encountered: