All Projects โ†’ ubie-inc โ†’ brave-kt

ubie-inc / brave-kt

Licence: Apache-2.0 license
A library that adds Kotlin friendly API for brave

Programming Languages

kotlin
9241 projects

Labels

Projects that are alternatives of or similar to brave-kt

alfred-browser-tabs
๐Ÿ” Search browser tabs from Chrome, Brave, Safari, etc..
Stars: โœญ 302 (+2057.14%)
Mutual labels:  brave
browser-extensions-book
The free book `Browser Extensions book`, by yours truly. Momentarily stale.
Stars: โœญ 100 (+614.29%)
Mutual labels:  brave
privacy-settings
Guide to privacy settings for most major softwares and services.
Stars: โœญ 97 (+592.86%)
Mutual labels:  brave
portal-network-browser-extension
๐Ÿ•ณ๏ธ๐ŸŒ๐Ÿ”Œ Portal Network Browser Extension, enables browsing IPFS website by using Ethereum Name Service and Ethereum Classic Name Service.
Stars: โœญ 16 (+14.29%)
Mutual labels:  brave
Brave Browser
Next generation Brave browser for Android, Linux, macOS, Windows.
Stars: โœญ 11,580 (+82614.29%)
Mutual labels:  brave
Browser Laptop
[DEPRECATED] Please see https://github.com/brave/brave-browser for the current version of Brave
Stars: โœญ 8,029 (+57250%)
Mutual labels:  brave
Metamask Extension
๐ŸŒ ๐Ÿ”Œ The MetaMask browser extension enables browsing Ethereum blockchain enabled websites
Stars: โœญ 6,585 (+46935.71%)
Mutual labels:  brave
chrome-flags
๐Ÿ’ My personal Chromium-based flags
Stars: โœญ 13 (-7.14%)
Mutual labels:  brave
startpage
a cute little home for my browser
Stars: โœญ 26 (+85.71%)
Mutual labels:  brave
meanOs
Mean Operating System - The first decentralized, artificially intelligent, MEAN.js stack, operating system. Mean OS is the only operating system hosted anonymous using a P2P network and a suite of non-standard in-browser delivery mechanisms. Mean OS proudly supports Brave and Tor, be free!
Stars: โœญ 62 (+342.86%)
Mutual labels:  brave
browserexport
backup and parse browser history databases (chrome, firefox, safari, and other chrome/firefox derivatives)
Stars: โœญ 54 (+285.71%)
Mutual labels:  brave
brave-kafka-interceptor
Kafka Interceptor for Zipkin
Stars: โœญ 30 (+114.29%)
Mutual labels:  brave
utools-recent-projects
uTools ๆ’ไปถ, ๅฟซ้€ŸๆŸฅ่ฏขๆœ€่ฟ‘ๆ‰“ๅผ€็š„้กน็›ฎ
Stars: โœญ 84 (+500%)
Mutual labels:  brave

brave-kt

brave-kt is the library that adds Kotlin friendly API for brave

How to use it

Tracer with ScopedSpan

Previously,

val span = Tracing.currentTracer().startScopedSpan()
try {
    // whatever you want to do to trace with span
} finally {
    span.finish()
}

Now we can do like this

val result = tracer.scopedSpan("DB ACCESS") {
    // whatever you want to do to trace with span
}

You can pass start timestamp, too

tracer.scopedSpan("DB ACCESS", startTimestamp) {
    // whatever you want to do to trace with span
}

Span

Previously,

span.start()
try {
    // whatever you want to do to trace with span
} finally {
    span.finish()
}

Now we can do like this

span.use {
    // whatever you want to do to trace with span
}

You can pass start timestamp, too

span.use(startTimestamp) {
    // whatever you want to do to trace with span
}

How to Install

Use gradle!

dependencies {
    compile("io.zipkin.brave:brave:${brave.version}")
    compile("app.ubie:brave-kt:1.0.0")
}

You can of course use this library with spring-cloud-gcp-starter-trace

dependencies {
    compile("org.springframework.cloud:spring-cloud-gcp-starter-trace:${cloudgcp.version}")
    compile("app.ubie:brave-kt:1.0.0")
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].