File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed
packages/opentelemetry-instrumentation-grpc/src Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ All notable changes to experimental packages in this project will be documented
29
29
30
30
### :house : (Internal)
31
31
32
+ * chore(instrumentation-grpc): remove unused findIndex() function [ #5372 ] ( https://github.com/open-telemetry/opentelemetry-js/pull/5372 ) @cjihrig
32
33
* refactor(otlp-exporter-base): remove unnecessary isNaN() checks [ #5374 ] ( https://github.com/open-telemetry/opentelemetry-js/pull/5374 ) @cjihrig
33
34
34
35
## 0.57.0
Original file line number Diff line number Diff line change @@ -23,21 +23,6 @@ import type { IgnoreMatcher } from './types';
23
23
export const URI_REGEX =
24
24
/ (?: ( [ A - Z a - z 0 - 9 + . - ] + ) : (?: \/ \/ ) ? ) ? (?< name > [ A - Z a - z 0 - 9 + . - ] + ) : (?< port > [ 0 - 9 + . - ] + ) $ / ;
25
25
26
- // Equivalent to lodash _.findIndex
27
- export const findIndex : < T > ( args : T [ ] , fn : ( arg : T ) => boolean ) => number = (
28
- args ,
29
- fn
30
- ) => {
31
- let index = - 1 ;
32
- for ( const arg of args ) {
33
- index ++ ;
34
- if ( fn ( arg ) ) {
35
- return index ;
36
- }
37
- }
38
- return - 1 ;
39
- } ;
40
-
41
26
/**
42
27
* Convert a grpc status code to an opentelemetry SpanStatus code.
43
28
* @param status
You can’t perform that action at this time.
0 commit comments