Skip to content

Commit a4d0c3d

Browse files
afkelsallsvc-squareup-copybara
authored andcommitted
[misk-logging] Remove ExperimentalMiskApi from withSmartTags
This PR removes the experimental tag from withSmartTags. It's been in use for with no further feedback or changes to the API. GitOrigin-RevId: 9eb7834f74f93f4e1bc167405f22f276be6614dd
1 parent 8934a49 commit a4d0c3d

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

misk-logging/src/main/kotlin/misk/logging/Logging.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ fun <T> withTags(vararg tags: Tag, block: () -> T): T {
104104
/**
105105
* `includeTagsOnExceptionLogs`: For usage instructions, please see docs below on `withSmartTags`
106106
*/
107-
@OptIn(ExperimentalMiskApi::class)
108107
fun <T> withTags(
109108
vararg tags: Tag,
110109
includeTagsOnExceptionLogs: Boolean = false,
@@ -171,7 +170,6 @@ fun <T> withTags(
171170
* Log MDC context: [processValue: "PV_123", contextToken: "contextTokenValue"] Log message: "unexpected error dispatching to ServiceAction" // This log would not normally include the MDC context
172171
* ```
173172
*/
174-
@ExperimentalMiskApi
175173
fun <T> withSmartTags(vararg tags: Tag, block: () -> T): T {
176174
return withTags(*tags, includeTagsOnExceptionLogs = true, block = block)
177175
}

misk-logging/src/main/kotlin/misk/logging/SmartTagsThreadLocalHandler.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
package misk.logging
22

3-
import misk.annotation.ExperimentalMiskApi
4-
5-
@ExperimentalMiskApi
63
object SmartTagsThreadLocalHandler {
74
private val threadLocalMdcContext = ThreadLocal<ThreadLocalSmartTagsMdcContext>()
85

0 commit comments

Comments
 (0)