Skip to content

Commit a60c63e

Browse files
committed
Update dependencies
Signed-off-by: beorn7 <[email protected]>
1 parent babeb35 commit a60c63e

File tree

3 files changed

+14
-49
lines changed

3 files changed

+14
-49
lines changed

api/prometheus/v1/example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ func ExampleAPI_queryRangeWithAuthBearerToken() {
164164
client, err := api.NewClient(api.Config{
165165
Address: "http://demo.robustperception.io:9090",
166166
// We can use amazing github.com/prometheus/common/config helper!
167-
RoundTripper: config.NewBearerAuthRoundTripper("secret_token", api.DefaultRoundTripper),
167+
RoundTripper: config.NewAuthorizationCredentialsRoundTripper("Bearer", "secret_token", api.DefaultRoundTripper),
168168
})
169169
if err != nil {
170170
fmt.Printf("Error creating client: %v\n", err)

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ require (
66
github.com/golang/protobuf v1.4.3
77
github.com/json-iterator/go v1.1.10
88
github.com/prometheus/client_model v0.2.0
9-
github.com/prometheus/common v0.15.0
10-
github.com/prometheus/procfs v0.3.0
11-
golang.org/x/sys v0.0.0-20201214210602-f9fddec55a1e
9+
github.com/prometheus/common v0.18.0
10+
github.com/prometheus/procfs v0.6.0
11+
golang.org/x/sys v0.0.0-20210309074719-68d13333faf2
1212
)
1313

1414
go 1.11

0 commit comments

Comments
 (0)