Ai
2 Star 0 Fork 0

mirrors_sourcegraph/lightstep-tracer-javascript

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.d.ts 1.56 KB
一键复制 编辑 原始数据 按行查看 历史
Felix Becker 提交于 2018-12-15 04:34 +08:00 . Add types
declare module '@sourcegraph/lightstep-tracer-webworker' {
import SpanImp from '@sourcegraph/lightstep-tracer-webworker/lib/imp/span_imp'
import * as opentracing from 'opentracing'
export interface TracerOptions {
/** the project access token */
access_token: string
/** the string identifier for the application, service, or process */
component_name: string
/**
* controls the level of logging to the console
*
* - 0 - the client library will never log to the console
* - 1 - error reporting will be throttled to the first error per minute
* - 2 - all errors are logged to the console
* - 3 - all errors, warnings, and info statements are logged to the console
* - 4 - all log statements, including debugging details
*
* @default 1
*/
verbosity?: number
/** custom collector hostname */
collector_host?: string
/** custom collector port */
collector_port?: number
/** custom collector base path (if served behind a reverse proxy) */
collector_path?: string
}
export class Tracer extends opentracing.Tracer {
constructor(options: TracerOptions)
public startSpan(name: string, options?: opentracing.SpanOptions): SpanImp
}
}
declare module '@sourcegraph/lightstep-tracer-webworker/lib/imp/span_imp' {
import * as opentracing from 'opentracing'
export default class SpanImp extends opentracing.Span {
public generateTraceURL(): string
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_sourcegraph/lightstep-tracer-javascript.git
git@gitee.com:mirrors_sourcegraph/lightstep-tracer-javascript.git
mirrors_sourcegraph
lightstep-tracer-javascript
lightstep-tracer-javascript
master

搜索帮助