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 dropped_attributes_count support in exporters #3351

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Lint
nstawski committed Jun 13, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit b017abbdf078519202d765b2868afbd198d9259a
Original file line number Diff line number Diff line change
@@ -57,7 +57,10 @@ def test_dropped_attributes_count(self):
encoded_logs = encode_logs(sdk_logs)
self.assertTrue(hasattr(sdk_logs[0].log_record, "dropped_attributes"))
self.assertEqual(
encoded_logs.resource_logs[0].scope_logs[0].log_records[0].dropped_attributes_count,
encoded_logs.resource_logs[0]
.scope_logs[0]
.log_records[0]
.dropped_attributes_count,
2
)

@@ -130,7 +133,7 @@ def _get_sdk_log_data() -> List[LogData]:
)

return [log1, log2, log3, log4]

@staticmethod
def _get_test_logs_dropped_attributes() -> List[LogData]:
log1 = LogData(