Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [8.1.0]
## [8.1.1]

- Adds OpenTelemetry support for the plugin interface

## [8.1.0]

- Adds `updateConfigJsonFromEnv` for the plugin interface

## [8.0.2]
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id 'java-library'
}

version = "8.1.0"
version = "8.1.1"

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,11 @@ public interface OtelProvider {

public void createLogEvent(TenantIdentifier tenantIdentifier, String logMessage, String logLevel);
public void createLogEvent(TenantIdentifier tenantIdentifier, String logMessage, String logLevel, Map<String, String> additionalAttributes);

public <T> T wrapInSpanWithReturn(TenantIdentifier tenantIdentifier, String spanName,
Map<String, String> additionalAttributes, RunnableWithOtel<T> runWithOtel);

public void createSpanWithAttributes(TenantIdentifier tenantIdentifier, String spanName,
Map<String, String> additionalAttributes);

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* Copyright (c) 2025, VRAI Labs and/or its affiliates. All rights reserved.
*
* This software is licensed under the Apache License, Version 2.0 (the
* "License") as published by the Apache Software Foundation.
*
* You may not use this file except in compliance with the License. You may
* obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/

package io.supertokens.pluginInterface.opentelemetry;

@FunctionalInterface
public interface RunnableWithOtel<T> {

T runWithReturnValue();
}