Skip to content

Commit 218b9af

Browse files
author
Jonah Back
committed
Add GoDoc
1 parent cb9bdba commit 218b9af

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

receiver/opencensusreceiver/config.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ type Config struct {
3232
// TLSCredentials is a (cert_file, key_file) configuration.
3333
TLSCredentials *tlsCredentials `mapstructure:"tls-credentials,omitempty"`
3434

35+
// CorsOrigins are the allowed CORS origins for HTTP/JSON requests to grpc-gateway adapter
36+
// for the OpenCensus receiver. See github.com/rs/cors
37+
// An empty list means that CORS is not enabled at all. A wildcard (*) can be
38+
// used to match any origin or one or more characters of an origin.
3539
CorsOrigins []string `mapstructure:"cors-allowed-origins"`
3640

3741
// Keepalive anchor for all the settings related to keepalive.

0 commit comments

Comments
 (0)