Skip to content

RUM-16359: Refactor LogsAgent setup#162

Merged
kikoveiga merged 1 commit into
developfrom
kikoveiga/RUM-16359/refactor-logsagent-setup
May 22, 2026
Merged

RUM-16359: Refactor LogsAgent setup#162
kikoveiga merged 1 commit into
developfrom
kikoveiga/RUM-16359/refactor-logsagent-setup

Conversation

@kikoveiga

@kikoveiga kikoveiga commented May 20, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

  • Simplify LogsAgent setup process by adding a setupIfNeeded function that only does the hard work once: when m.isConfigured is not true.
  • Remove unnecessary clientToken and test that was checking the old behavior.

Motivation

The previous design with ensureSetup was running the uploader and writer registration on every sendLog call, as noted on #157. This PR fixes that and aligns with the improvements on RumAgent in #161.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@kikoveiga
kikoveiga marked this pull request as ready for review May 20, 2026 10:48
@kikoveiga
kikoveiga requested a review from a team as a code owner May 20, 2026 10:48
@kikoveiga kikoveiga self-assigned this May 20, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9a4656eb2f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread library/components/logs/LogsAgent.bs
Base automatically changed from kikoveiga/RUM-16359/refactor-rumagent-setup to develop May 21, 2026 15:31
@kikoveiga
kikoveiga merged commit 800417d into develop May 22, 2026
8 checks passed
@kikoveiga
kikoveiga deleted the kikoveiga/RUM-16359/refactor-logsagent-setup branch May 22, 2026 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants