Skip to content

Update Cloud Logging Exporter to handle bytes in dict body#407

Merged
DylanRussell merged 22 commits intoGoogleCloudPlatform:mainfrom
DylanRussell:fix_bytes
Jun 6, 2025
Merged

Update Cloud Logging Exporter to handle bytes in dict body#407
DylanRussell merged 22 commits intoGoogleCloudPlatform:mainfrom
DylanRussell:fix_bytes

Conversation

@DylanRussell
Copy link
Copy Markdown
Contributor

Fixes #406

@DylanRussell DylanRussell requested a review from a team as a code owner June 4, 2025 13:26
@dashpole dashpole requested a review from aabmass June 4, 2025 15:10
DylanRussell and others added 5 commits June 5, 2025 12:42
…cloud_logging/__init__.py

Co-authored-by: Aaron Abbott <aaronabbott@google.com>
…cloud_logging/__init__.py

Co-authored-by: Aaron Abbott <aaronabbott@google.com>
@DylanRussell
Copy link
Copy Markdown
Contributor Author

Aaron importing AnyValue requires updating the otel api/sdk dependencies to 1.3 in dev_constraints.txt, which causes mypy to fail for the metrics exporter because it doesnt't handle the exponential histogram types yet.

What's the best way to deal with this ? I could just remove that AnyValue import and put it back to Any import now that i've verified my code passes the type checker ? WDYT ?

@DylanRussell
Copy link
Copy Markdown
Contributor Author

I think this is ready to be merged.. Not sure why the e2e tests still are looking for v1.2 of the API/SDK, it seems they aren't using the version of the dev_constraints.txt file I modified in this PR?

@DylanRussell
Copy link
Copy Markdown
Contributor Author

Nevermind figured it out.. Had to update the constraints.txt file

@DylanRussell DylanRussell merged commit 54cb8a6 into GoogleCloudPlatform:main Jun 6, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CloudLoggingExporter exporter fails with bytes in body

2 participants