Skip to content

Commit 62820fc

Browse files
authored
feat: annotation for aspect weaving marker (#182)
* feat: annotation for aspect weaving marker * fix: changelog and build version * fix: update build version
1 parent 1dd1b76 commit 62820fc

File tree

5 files changed

+42
-14
lines changed

5 files changed

+42
-14
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
99

10+
## [8.2.0]
11+
12+
- Adds OpenTelemetry javaagent support
13+
1014
## [8.1.0]
1115

1216
- Adds OpenTelemetry support for the plugin interface

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins {
22
id 'java-library'
33
}
44

5-
version = "8.1.0"
5+
version = "8.2.0"
66

77
repositories {
88
mavenCentral()

src/main/java/io/supertokens/pluginInterface/multitenancy/AppIdentifier.java

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,6 @@
1616

1717
package io.supertokens.pluginInterface.multitenancy;
1818

19-
import io.supertokens.pluginInterface.STORAGE_TYPE;
20-
import io.supertokens.pluginInterface.Storage;
21-
import io.supertokens.pluginInterface.authRecipe.AuthRecipeStorage;
22-
import io.supertokens.pluginInterface.emailpassword.sqlStorage.EmailPasswordSQLStorage;
23-
import io.supertokens.pluginInterface.emailverification.sqlStorage.EmailVerificationSQLStorage;
24-
import io.supertokens.pluginInterface.multitenancy.exceptions.TenantOrAppNotFoundException;
25-
import io.supertokens.pluginInterface.session.SessionStorage;
26-
import io.supertokens.pluginInterface.useridmapping.UserIdMappingStorage;
27-
import io.supertokens.pluginInterface.usermetadata.sqlStorage.UserMetadataSQLStorage;
28-
import io.supertokens.pluginInterface.userroles.sqlStorage.UserRolesSQLStorage;
29-
3019
import javax.annotation.Nonnull;
3120
import javax.annotation.Nullable;
3221

@@ -77,6 +66,11 @@ public int hashCode() {
7766
this.getAppId()).hashCode();
7867
}
7968

69+
@Override
70+
public String toString() {
71+
return getConnectionUriDomain() + " | " + getAppId();
72+
}
73+
8074
public TenantIdentifier getAsPublicTenantIdentifier() {
8175
return new TenantIdentifier(this.getConnectionUriDomain(), this.getAppId(), null);
8276
}

src/main/java/io/supertokens/pluginInterface/multitenancy/TenantIdentifier.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
package io.supertokens.pluginInterface.multitenancy;
1818

19-
import io.supertokens.pluginInterface.Storage;
20-
2119
import javax.annotation.Nonnull;
2220
import javax.annotation.Nullable;
2321

@@ -84,6 +82,11 @@ public int hashCode() {
8482
this.getAppId()).hashCode();
8583
}
8684

85+
@Override
86+
public String toString() {
87+
return getConnectionUriDomain() + " | " + getAppId() + " | " + getTenantId();
88+
}
89+
8790
public AppIdentifier toAppIdentifier() {
8891
return new AppIdentifier(this.getConnectionUriDomain(), this.getAppId());
8992
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* Copyright (c) 2025, VRAI Labs and/or its affiliates. All rights reserved.
3+
*
4+
* This software is licensed under the Apache License, Version 2.0 (the
5+
* "License") as published by the Apache Software Foundation.
6+
*
7+
* You may not use this file except in compliance with the License. You may
8+
* obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
* License for the specific language governing permissions and limitations
14+
* under the License.
15+
*/
16+
17+
package io.supertokens.pluginInterface.opentelemetry;
18+
19+
import java.lang.annotation.ElementType;
20+
import java.lang.annotation.Retention;
21+
import java.lang.annotation.RetentionPolicy;
22+
import java.lang.annotation.Target;
23+
24+
@Target({ElementType.METHOD, ElementType.TYPE})
25+
@Retention(RetentionPolicy.RUNTIME)
26+
public @interface WithinOtelSpan {
27+
}

0 commit comments

Comments
 (0)