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

[exporter][batcher] Add the API ByteSize() to exporter.Request #12153

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sfc-gh-sili
Copy link
Contributor

Description

This PR adds the API to ByteSize() to exporter.Request

Link to tracking issue

#3262

Testing

Documentation

@sfc-gh-sili sfc-gh-sili requested review from bogdandrutu, dmitryax and a team as code owners January 22, 2025 03:05
@sfc-gh-sili sfc-gh-sili force-pushed the sili-bytes-based-batching-pre branch from cf461ca to 5d09bf6 Compare January 22, 2025 03:28
Copy link

codecov bot commented Jan 22, 2025

Codecov Report

Attention: Patch coverage is 0% with 12 lines in your changes missing coverage. Please review.

Project coverage is 91.68%. Comparing base (9757ead) to head (5d09bf6).

Files with missing lines Patch % Lines
exporter/internal/requesttest/fake_request.go 0.00% 4 Missing ⚠️
exporter/exporterhelper/logs.go 0.00% 2 Missing ⚠️
exporter/exporterhelper/metrics.go 0.00% 2 Missing ⚠️
exporter/exporterhelper/traces.go 0.00% 2 Missing ⚠️
...xporter/exporterhelper/xexporterhelper/profiles.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12153      +/-   ##
==========================================
- Coverage   91.73%   91.68%   -0.05%     
==========================================
  Files         463      463              
  Lines       24819    24831      +12     
==========================================
  Hits        22767    22767              
- Misses       1670     1682      +12     
  Partials      382      382              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@dmathieu dmathieu left a comment

Choose a reason for hiding this comment

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

Could we add tests?

@@ -16,9 +16,10 @@ type Request interface {
// Export exports the request to an external endpoint.
Export(ctx context.Context) error
// ItemsCount returns a number of basic items in the request where item is the smallest piece of data that can be
// sent. For example, for OTLP exporter, this value represents the number of spans,
// metric data points or log records.
// sent. For example, for OTLP exporter, this value represents the number of spans, metric data points or log records.
Copy link
Member

Choose a reason for hiding this comment

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

This doc change isn't related to the purpose of this PR.

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