# PropagationUnsupportedToken

Artifact: [androidx.tracing:tracing](https://developer.android.com/jetpack/androidx/releases/tracing) [View Source](https://cs.android.com/search?q=file:androidx/tracing/PropagationUnsupportedToken.kt+class:androidx.tracing.PropagationUnsupportedToken) Added in [2.0.5](https://developer.android.com/jetpack/androidx/releases/tracing#2.0.5)

*** ** * ** ***


```
public static class PropagationUnsupportedToken implements PropagationToken, AutoCloseable
```

<br />

*** ** * ** ***

The `https://developer.android.com/reference/androidx/tracing/PropagationToken` instance that should be returned when context propagation is unsupported by the underlying `https://developer.android.com/reference/androidx/tracing/Tracer`.

## Summary

| ### Public fields |
|---|---|
| `static @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/tracing/PropagationUnsupportedToken` | `https://developer.android.com/reference/androidx/tracing/PropagationUnsupportedToken#INSTANCE()` |

| ### Public methods |
|---|---|
| `void` | `https://developer.android.com/reference/androidx/tracing/PropagationUnsupportedToken#close()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.coroutines/-coroutine-context/-element/index.html` | `@https://developer.android.com/reference/androidx/tracing/DelicateTracingApi https://developer.android.com/reference/androidx/tracing/PropagationUnsupportedToken#contextElementOrNull()()` |

## Public fields

### INSTANCE

Added in [2.0.5](https://developer.android.com/jetpack/androidx/releases/tracing#2.0.5)

```
public static @NonNull PropagationUnsupportedToken INSTANCE
```

## Public methods

### close

Added in [2.0.5](https://developer.android.com/jetpack/androidx/releases/tracing#2.0.5)

```
public void close()
```

### contextElementOrNull

```
@DelicateTracingApi
public CoroutineContext.Element contextElementOrNull()
```

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.coroutines/-coroutine-context/-element/index.html` | a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.coroutines/-coroutine-context/-element/index.html` that needs to be installed in the `https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/index.html` prior to dispatching the suspending block of code being traced; if the token is being used in a suspending context. |