[exporter/tinybird] implement logs propagation#40993
Merged
mx-psi merged 5 commits intoJul 9, 2025
Merged
Conversation
58c7403 to
caf3f45
Compare
mx-psi
reviewed
Jul 1, 2025
119b011 to
faafcaf
Compare
mx-psi
approved these changes
Jul 7, 2025
faafcaf to
9c07be3
Compare
Member
|
Can we get an approval from another codeowner before merging? |
MoreraAlejandro
approved these changes
Jul 9, 2025
mx-psi
pushed a commit
that referenced
this pull request
Jul 14, 2025
#### Description Implement traces propagation for the new Tinybird Exporter. The exporter iterates over the ptraces data, extracts the required fields (service name, attributes, spanID, etc.), generates an NDJSON, and performs a request to the Tinybird [EventsAPI](https://www.tinybird.co/docs/forward/get-data-in/events-api) with all the data. It's the same implementation done in [logs](#40993) but this time focused on traces. #### Link to tracking issue Related to #40475 #### Testing Included traces conversion tests and HTTP request tests.
constanca-m
pushed a commit
to constanca-m/opentelemetry-collector-contrib
that referenced
this pull request
Jul 21, 2025
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Implement logs propagation for the new Tinybird Exporter. The exporter iterates over the plog data, extracts the required fields (service name, attributes, log severity, etc.), generates an NDJSON, and performs a request to the Tinybird [EventsAPI](https://www.tinybird.co/docs/forward/get-data-in/events-api) with all the data. The implementation is inspired in the `otlphttp` exporter (both perform HTTP requests). - Exporter config has been modified to include - `confighttp.ClientConfig`: allow the configuration of the HTTP client - `configretry.BackOffConfig`: allow the configuration of retries, - `exporterhelper.QueueBatchConfig`: allow the configuration of sending queue and batching strategy. - Factories have been updated to propagate these new configs <!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. --> #### Link to tracking issue Related to open-telemetry#40475 <!--Describe what testing was performed and which tests were added.--> #### Testing Included logs conversion tests and HTTP request tests.
mx-psi
pushed a commit
that referenced
this pull request
Jul 21, 2025
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Implement metrics propagation for the new Tinybird Exporter. The exporter iterates over the pmetric data, extracts the required fields (service name, attributes, spanID, etc.), generates an NDJSON, and performs a request to the Tinybird [EventsAPI](https://www.tinybird.co/docs/forward/get-data-in/events-api) with all the data. It's the same implementation done in #40993 and #41248, but this time focused on metrics. The only difference is that instead of just having a `SignalConfig` for `Metrics`, it has one for each type of metric (`MetricsGauge`, `MetricsSum`, `MetricsHistogram`, and `MetricsExponentialHistogram`). The reason is that each type of metric is stored in a different datasource in Tinybird (each has different schema). This is based on the clickhouseexporter. Now that the three signals have been implemented, the component lifecycle tests have been re-enabled <!-- Issue number (e.g. #1234) or full URL to issue, if applicable. --> #### Link to tracking issue Related to #40475 <!--Describe the documentation added.--> #### Documentation - Modified the exporter README to add the per metric configuration <!--Please delete paragraphs that you did not use before submitting.--> --------- Co-authored-by: MoreraAlejandro <amorera@tinybird.co>
Dylan-M
pushed a commit
to Dylan-M/opentelemetry-collector-contrib
that referenced
this pull request
Aug 5, 2025
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Implement logs propagation for the new Tinybird Exporter. The exporter iterates over the plog data, extracts the required fields (service name, attributes, log severity, etc.), generates an NDJSON, and performs a request to the Tinybird [EventsAPI](https://www.tinybird.co/docs/forward/get-data-in/events-api) with all the data. The implementation is inspired in the `otlphttp` exporter (both perform HTTP requests). - Exporter config has been modified to include - `confighttp.ClientConfig`: allow the configuration of the HTTP client - `configretry.BackOffConfig`: allow the configuration of retries, - `exporterhelper.QueueBatchConfig`: allow the configuration of sending queue and batching strategy. - Factories have been updated to propagate these new configs <!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. --> #### Link to tracking issue Related to open-telemetry#40475 <!--Describe what testing was performed and which tests were added.--> #### Testing Included logs conversion tests and HTTP request tests.
Dylan-M
pushed a commit
to Dylan-M/opentelemetry-collector-contrib
that referenced
this pull request
Aug 5, 2025
#### Description Implement traces propagation for the new Tinybird Exporter. The exporter iterates over the ptraces data, extracts the required fields (service name, attributes, spanID, etc.), generates an NDJSON, and performs a request to the Tinybird [EventsAPI](https://www.tinybird.co/docs/forward/get-data-in/events-api) with all the data. It's the same implementation done in [logs](open-telemetry#40993) but this time focused on traces. #### Link to tracking issue Related to open-telemetry#40475 #### Testing Included traces conversion tests and HTTP request tests.
Dylan-M
pushed a commit
to Dylan-M/opentelemetry-collector-contrib
that referenced
this pull request
Aug 5, 2025
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Implement metrics propagation for the new Tinybird Exporter. The exporter iterates over the pmetric data, extracts the required fields (service name, attributes, spanID, etc.), generates an NDJSON, and performs a request to the Tinybird [EventsAPI](https://www.tinybird.co/docs/forward/get-data-in/events-api) with all the data. It's the same implementation done in open-telemetry#40993 and open-telemetry#41248, but this time focused on metrics. The only difference is that instead of just having a `SignalConfig` for `Metrics`, it has one for each type of metric (`MetricsGauge`, `MetricsSum`, `MetricsHistogram`, and `MetricsExponentialHistogram`). The reason is that each type of metric is stored in a different datasource in Tinybird (each has different schema). This is based on the clickhouseexporter. Now that the three signals have been implemented, the component lifecycle tests have been re-enabled <!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. --> #### Link to tracking issue Related to open-telemetry#40475 <!--Describe the documentation added.--> #### Documentation - Modified the exporter README to add the per metric configuration <!--Please delete paragraphs that you did not use before submitting.--> --------- Co-authored-by: MoreraAlejandro <amorera@tinybird.co>
6 tasks
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Implement logs propagation for the new Tinybird Exporter. The exporter iterates over the plog data, extracts the required fields (service name, attributes, log severity, etc.), generates an NDJSON, and performs a request to the Tinybird EventsAPI with all the data.
The implementation is inspired in the
otlphttpexporter (both perform HTTP requests).confighttp.ClientConfig: allow the configuration of the HTTP clientconfigretry.BackOffConfig: allow the configuration of retries,exporterhelper.QueueBatchConfig: allow the configuration of sending queue and batching strategy.Link to tracking issue
Related to #40475
Testing
Included logs conversion tests and HTTP request tests.