Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 5 additions & 0 deletions processors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ This module provides tools to intercept and process signals globally:

## Event to SpanEvent Bridge

> [!WARNING]
> `EventToSpanEventBridge` is deprecated and will be removed after the 1.59.0 release. Use
> `io.opentelemetry.sdk.extension.incubator.logs.EventToSpanEventBridge` from the
> `opentelemetry-sdk-extension-incubator` artifact instead.

`EventToSpanEventBridge` is a `LogRecordProcessor` which records events
(i.e. log records with an `event.name` attribute) as span events for the current
span if:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@
* LogRecordData#getAttributes()}.size() is mapped to span event attribute with key {@code
* log.record.dropped_attributes_count}
* </ul>
*
* @deprecated Use {@code io.opentelemetry.sdk.extension.incubator.logs.EventToSpanEventBridge} from
* the {@code opentelemetry-sdk-extension-incubator} artifact instead. Will be removed after the
* 1.59.0 release.
*/
@Deprecated
public final class EventToSpanEventBridge implements LogRecordProcessor {

private static final Logger logger = Logger.getLogger(EventToSpanEventBridge.class.getName());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
*
* <p>This class is internal and is hence not for public use. Its APIs are unstable and can change
* at any time.
*
* @deprecated Will be removed after the 1.59.0 release along with {@link EventToSpanEventBridge}.
*/
@Deprecated
public class EventToSpanEventBridgeComponentProvider implements ComponentProvider {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import java.util.concurrent.TimeUnit;
import org.junit.jupiter.api.Test;

@SuppressWarnings("deprecation") // testing deprecated code
class EventToSpanEventBridgeTest {

private final InMemorySpanExporter spanExporter = InMemorySpanExporter.create();
Expand Down
Loading