We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd894ab commit fa25ce2Copy full SHA for fa25ce2
pyroscope_cli/src/core/profiler.rs
@@ -96,6 +96,8 @@ impl Profiler {
96
// There must be a better way to do this, hopefully as clap supports Option<String>
97
if auth_token.len() > 0 {
98
builder = builder.auth_token(auth_token);
99
+ } else if basic_auth_username != "" && basic_auth_password != "" {
100
+ builder = builder.basic_auth(basic_auth_username, basic_auth_password);
101
}
102
103
builder.backend(backend).tags(tags).build()?
0 commit comments