Skip to content

Commit 960c768

Browse files
committed
trace: export tracing scopes
Fixes #543. Change-Id: I3c915fea75a81235d9c97212afda0dd319a703e2 Reviewed-on: https://code-review.googlesource.com/11351 Reviewed-by: kokoro <[email protected]> Reviewed-by: Hana Kim <[email protected]>
1 parent 8b0ab47 commit 960c768

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

trace/trace.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,15 @@ const (
185185
labelSamplingWeight = `trace.cloud.google.com/sampling_weight`
186186
)
187187

188+
const (
189+
// ScopeTraceAppend grants permissions to write trace data for a project.
190+
ScopeTraceAppend = "https://www.googleapis.com/auth/trace.append"
191+
192+
// ScopeCloudPlatform grants permissions to view and manage your data
193+
// across Google Cloud Platform services.
194+
ScopeCloudPlatform = "https://www.googleapis.com/auth/cloud-platform"
195+
)
196+
188197
type contextKey struct{}
189198

190199
type stackLabelValue struct {

0 commit comments

Comments
 (0)