Skip to content

Commit

Permalink
trace: export tracing scopes
Browse files Browse the repository at this point in the history
Fixes #543.

Change-Id: I3c915fea75a81235d9c97212afda0dd319a703e2
Reviewed-on: https://code-review.googlesource.com/11351
Reviewed-by: kokoro <[email protected]>
Reviewed-by: Hana Kim <[email protected]>
  • Loading branch information
rakyll committed Mar 7, 2017
1 parent 8b0ab47 commit 960c768
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions trace/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,15 @@ const (
labelSamplingWeight = `trace.cloud.google.com/sampling_weight`
)

const (
// ScopeTraceAppend grants permissions to write trace data for a project.
ScopeTraceAppend = "https://www.googleapis.com/auth/trace.append"

// ScopeCloudPlatform grants permissions to view and manage your data
// across Google Cloud Platform services.
ScopeCloudPlatform = "https://www.googleapis.com/auth/cloud-platform"
)

type contextKey struct{}

type stackLabelValue struct {
Expand Down

0 comments on commit 960c768

Please sign in to comment.