Commit Graph

7 Commits

Author SHA1 Message Date
Bogdan Drutu 8d3fe01ff6
Clarify that data cannot be accessed after Consume* func is called (#12284)
The problem here is that we have components like batchprocessor or
others which are keeping a reference of the data and eventually
modifying them without any concurrent access protection. Hence, it is
required for the callers to not access any data that were passed
downstream.

This is not a backwards incompatible change, since pdata is not
thread-safe this is a MUST to have here (consider a bug for not being
documented) otherwise things will not work in the processing pipelines.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2025-02-06 16:50:29 +00:00
Damien Mathieu d37fe6ccb7
Add consumer profiles (#10464)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
This adds profiles support for consumers.


<!-- Issue number if applicable -->
#### Link to tracking issue
Based on the discussion in #10375.

---------

Co-authored-by: Pablo Baeyens <pbaeyens31+github@gmail.com>
2024-07-09 18:13:54 +02:00
Antoine Toulme 44fbb84a0f
[chore] some doc changes to consumer package (#9150)
small changes to some docs.
2023-12-19 16:02:25 -08:00
Alex Boten ff6d473cf8
[chore] just fixing a typo (#8839)
Signed-off-by: Alex Boten <aboten@lightstep.com>
2023-11-10 18:25:14 -08:00
Alex Boten 80d704deb4
[chore] use license shortform (#7694)
* [chore] use license shortform

To remain consistent w/ contrib repo, see https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/22052

Signed-off-by: Alex Boten <aboten@lightstep.com>

* make goporto

Signed-off-by: Alex Boten <aboten@lightstep.com>

---------

Signed-off-by: Alex Boten <aboten@lightstep.com>
2023-05-18 13:11:17 -07:00
Dmitrii Anoshin 734e25e8de
Split `model` by signal type and move it to the new `pdata` module (#5168)
Split all `pdata` related code by type and move it from `model` to the new module `pdata`.

- `model/pdata` and `model/otlp` are moved to `pdata/plog`, `pdata/pmetric` and `pdata/ptrace`.
- `model/otlpgrpc` is moved to `pdata/plogotlp`, `pdata/pmetricotlp` and `pdata/ptraceotlp`.

Now all the API in `model` except for `model/semconv` is deprecated.
2022-04-11 16:00:26 -07:00
Bogdan Drutu ce71309a1d
Deprecate consumerhelper, move helpers to consumer (#5006)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2022-03-16 05:24:33 -07:00