Class NetworkChangeEvent
-
- All Implemented Interfaces:
-
io.opentelemetry.android.semconv.events.OpenTelemetryEvent
public final class NetworkChangeEvent implements OpenTelemetryEvent
<p>This event indicates that Android network connectivity changed.</p> <p>Notes:</p> <p>none</p>
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringNETWORK_CHANGE_EVENT_NAMEprivate final StringnetworkConnectionTypeprivate final StringnetworkStatus
-
Constructor Summary
Constructors Constructor Description NetworkChangeEvent(String networkConnectionType, String networkStatus)
-
Method Summary
Modifier and Type Method Description final StringgetNetworkConnectionType()<p>The internet connection type.</p> final StringgetNetworkStatus()<p>Deprecated. Use <c>network.connection.type</c> instead.</p> Unitemit(Logger logger, Attributes additionalAttributes)Emits this event through logger, including any additionalAttributes. -
-
Method Detail
-
getNetworkConnectionType
final String getNetworkConnectionType()
<p>The internet connection type.</p>
-
getNetworkStatus
final String getNetworkStatus()
<p>Deprecated. Use <c>network.connection.type</c> instead.</p>
-
emit
Unit emit(Logger logger, Attributes additionalAttributes)
Emits this event through logger, including any additionalAttributes.
-
-
-
-