Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli(sentry): set useful tags from resolved config #15485

Merged
merged 3 commits into from
Sep 20, 2023
Merged

Conversation

connorjclark
Copy link
Collaborator

  1. Set useful things from the provided settings as tags, not extra. Only the form are queryable. Channel, form factor, and throttling method
  2. Resolve settings from provided config and flags. This is normally only done inside core, but we repeat the same logic inside lib/sentry.js. If it fails, just ignore and fallback to using the provided flags -- core will handle the failure for us.

@connorjclark connorjclark requested a review from a team as a code owner September 19, 2023 23:05
@connorjclark connorjclark requested review from adamraine and removed request for a team September 19, 2023 23:05
/** @type {LH.Config.Settings | LH.CliFlags} */
let settings = opts.flags;
try {
const {resolvedConfig} = await initializeConfig('navigation', opts.config, opts.flags);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Settings could change for different modes (e.g. throttling method could override to devtools in timespan mode.

That being said, we are only using this on CLI for navigation runs so this makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants