-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathconst.go
More file actions
43 lines (33 loc) · 1.3 KB
/
const.go
File metadata and controls
43 lines (33 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
// SPDX-License-Identifier: MIT
package cozeloop
import (
"github.com/coze-dev/cozeloop-go/internal/consts"
"github.com/coze-dev/cozeloop-go/internal/trace"
)
const (
// environment keys for loop client
EnvApiBaseURL = "COZELOOP_API_BASE_URL"
EnvWorkspaceID = "COZELOOP_WORKSPACE_ID"
EnvApiToken = "COZELOOP_API_TOKEN"
EnvJwtOAuthClientID = "COZELOOP_JWT_OAUTH_CLIENT_ID"
EnvJwtOAuthPrivateKey = "COZELOOP_JWT_OAUTH_PRIVATE_KEY"
EnvJwtOAuthPublicKeyID = "COZELOOP_JWT_OAUTH_PUBLIC_KEY_ID"
// ComBaseURL = consts.ComBaseURL
CnBaseURL = consts.CnBaseURL
)
// SpanFinishEvent finish inner event
type SpanFinishEvent consts.SpanFinishEvent
const (
SpanFinishEventSpanQueueEntryRate = SpanFinishEvent(consts.SpanFinishEventSpanQueueEntryRate)
SpanFinishEventFileQueueEntryRate = SpanFinishEvent(consts.SpanFinishEventFileQueueEntryRate)
SpanFinishEventFlushSpanRate = SpanFinishEvent(consts.SpanFinishEventFlushSpanRate)
SpanFinishEventFlushFileRate = SpanFinishEvent(consts.SpanFinishEventFlushFileRate)
)
type FinishEventInfo consts.FinishEventInfo
type TagTruncateConf trace.TagTruncateConf
type APIBasePath struct {
TraceSpanUploadPath string
TraceFileUploadPath string
}
type TraceQueueConf trace.QueueConf