Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a parameter route_logs_to_stdout_as_json to the CloudLoggingExporter #385

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

DylanRussell
Copy link
Contributor

add a parameter route_logs_to_stdout_as_json to the CloudLoggingExporter

@DylanRussell DylanRussell requested a review from a team as a code owner February 25, 2025 18:16
@@ -215,11 +222,15 @@ def export(self, batch: Sequence[LogData]):
for k, v in attributes.items()
}
_set_payload_in_log_entry(log_entry, log_record.body)
log_entries.append(log_entry)
if self.route_logs_to_stdout_as_json:
print(LogEntry.to_json(log_entry))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused. Should I just be logging the jsonPayload field of the log ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need quite a bit more stuff here, like documenting why and how the user would use this.

@aabmass
Copy link
Collaborator

aabmass commented Feb 26, 2025

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.

2 participants