Skip to content

Commit 03368ec

Browse files
authored
add observability grant setter (#1214)
* add observability grant setter * Create four-jokes-build.md
1 parent 0cc4568 commit 03368ec

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.changeset/four-jokes-build.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@livekit/protocol": patch
3+
---
4+
5+
add observability grant setter

auth/accesstoken.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ func (t *AccessToken) SetInferenceGrant(grant *InferenceGrant) *AccessToken {
9393
return t
9494
}
9595

96+
func (t *AccessToken) SetObservabilityGrant(grant *ObservabilityGrant) *AccessToken {
97+
t.grant.Observability = grant
98+
return t
99+
}
100+
96101
func (t *AccessToken) SetMetadata(md string) *AccessToken {
97102
t.grant.Metadata = md
98103
return t

0 commit comments

Comments
 (0)