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

Support for custom event loggers #6433

Open
jdai8 opened this issue May 16, 2024 · 1 comment
Open

Support for custom event loggers #6433

jdai8 opened this issue May 16, 2024 · 1 comment
Assignees
Labels
awaiting-maintainer Awaiting review from Bazel team on issues lang: java Java rules integration product: IntelliJ IntelliJ plugin type: bug

Comments

@jdai8
Copy link
Contributor

jdai8 commented May 16, 2024

Description of the bug:

I'd like to implement a custom event logger that sends data about sync / build times to an internal metrics service.

It looks like currently there is some existing code around EventLoggingService and EventLogger that might allow me to do this. However, I'm confused whether this is a supported feature or not.

There is the com.google.idea.blaze.EventLogger extension point, but it doesn't seem to be actually called from anywhere.

I could also implement the EventLoggingService interface, but the comment on that class suggests it's meant to just forward events to EventLogger. So I'm not sure if this is the correct path or not.

I'm opening this as a bug because the code looks like it tries to support this.

Which category does this issue belong to?

Intellij

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

N/A

Which Intellij IDE are you using? Please provide the specific version.

IntelliJ Ultimate 2024.1

What programming languages and tools are you using? Please provide specific versions.

Java

What Bazel plugin version are you using?

N/A

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

@jdai8 jdai8 added awaiting-maintainer Awaiting review from Bazel team on issues type: bug labels May 16, 2024
@github-actions github-actions bot added the product: IntelliJ IntelliJ plugin label May 16, 2024
@iancha1992 iancha1992 added the lang: java Java rules integration label May 16, 2024
@tpasternak
Copy link
Collaborator

Yeah, so it seems to be unused. Btw quite recently google commited an "intellijext" service for handling these logs here 3dcb251 but I don't know what's the status of that.

If it would work, you could even try to handle the logs in an external application.

@mai93 do you know what's the status of this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-maintainer Awaiting review from Bazel team on issues lang: java Java rules integration product: IntelliJ IntelliJ plugin type: bug
Projects
None yet
Development

No branches or pull requests

5 participants