File tree Expand file tree Collapse file tree 5 files changed +42
-14
lines changed
src/main/java/io/supertokens/pluginInterface Expand file tree Collapse file tree 5 files changed +42
-14
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ plugins {
22 id ' java-library'
33}
44
5- version = " 8.1 .0"
5+ version = " 8.2 .0"
66
77repositories {
88 mavenCentral()
Original file line number Diff line number Diff line change 1616
1717package 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-
3019import javax .annotation .Nonnull ;
3120import 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 }
Original file line number Diff line number Diff line change 1616
1717package io .supertokens .pluginInterface .multitenancy ;
1818
19- import io .supertokens .pluginInterface .Storage ;
20-
2119import javax .annotation .Nonnull ;
2220import 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 }
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments