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

Multi-tenancy support for trace analytics #1404

Open
wants to merge 31 commits into
base: main
Choose a base branch
from

Conversation

JulianQuispel
Copy link

@JulianQuispel JulianQuispel commented Feb 2, 2024

Description

Enable multi-tenancy in the dashboards observability plugin. This way tenants only have access to their own trace data

Issues Resolved

Closes #1377

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@mengweieric mengweieric added the enhancement New feature or request label Feb 2, 2024
@JulianQuispel JulianQuispel changed the title Feature/multitenancy Multi-tenancy support for trace analytics Feb 7, 2024
@RemcoStoelwinder
Copy link

Is there perhaps any update on this? I would like this functionality for my own setup.

Copy link
Member

@joshuali925 joshuali925 left a comment

Choose a reason for hiding this comment

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

thanks for adding this, overall looks good. added some minor comments

@JulianQuispel
Copy link
Author

@joshuali925 thanks for your reply. I addressed your comments 😄

Signed-off-by: Julian Quispel <[email protected]>
Signed-off-by: Joshua Li <[email protected]>
@joshuali925
Copy link
Member

@JulianQuispel thanks for the update! i fixed some errors i ran into when pulling it down

Comment on lines +26 to +27
body: schema.object({
tenant: schema.maybe(schema.string()),
Copy link
Member

@ps48 ps48 May 21, 2024

Choose a reason for hiding this comment

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

Will this be a problem to add a hard enforced schema in as compared to any before? This is because with this change we aren't other fields passed in body apart from tenant today.

Copy link
Member

Choose a reason for hiding this comment

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

i didn't understand the question?

Copy link
Member

Choose a reason for hiding this comment

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

Does the body contain other fields and should they be added in the schema?

@JulianQuispel
Copy link
Author

@joshuali925 @ps48 thanks for the replies. I addressed most of your suggestions/remarks.

@JulianQuispel JulianQuispel requested a review from ps48 June 13, 2024 08:39
@JoeriRoijenga
Copy link

Since the merge conflicts are solved, what is the status on this PR and could it be approved + merged?

@RemcoStoelwinder
Copy link

Is there possibly an update on this?

@ps48
Copy link
Member

ps48 commented Sep 10, 2024

@JulianQuispel, @JoeriRoijenga, @RemcoStoelwinder we are releasing an experimental feature in 2.17 to have custom source for trace analytics. This feature custom index names with supports for wildcards, cross cluster searches. The experimental implementation stores the custom index names in advanced settings which close to what this PR brings in. Related PR can be found here: #2112

We also, have a roadmap ahead where we added pointers on the direction we want to take with the plugin in the coming releases. It would be great if you can take a look/comment and share your views:
RFC: #2141

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE PROPOSAL] Support for multi-tenancy in Trace Analytics
6 participants