Skip to content

Commit

Permalink
add missing class
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit committed Nov 30, 2022
1 parent 06b6969 commit 092ed6f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ final class InstrumentedRecordInterceptor<K, V> implements RecordInterceptor<K,
}

@NoMuzzle
@SuppressWarnings("deprecation") // implementing deprecated method (removed in 3.0) for better compatibility
@SuppressWarnings(
"deprecation") // implementing deprecated method (removed in 3.0) for better compatibility
@Override
public ConsumerRecord<K, V> intercept(ConsumerRecord<K, V> record) {
start(record);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/

package io.opentelemetry.javaagent.tooling.muzzle;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/** Skip muzzle checks for methods annotated with this annotation. */
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.METHOD)
public @interface NoMuzzle {}

0 comments on commit 092ed6f

Please sign in to comment.