File tree Expand file tree Collapse file tree 2 files changed +25
-12
lines changed
instrumentation-dataloader/test/fixtures Expand file tree Collapse file tree 2 files changed +25
-12
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,13 @@ import { DataloaderInstrumentation } from '../../build/src/index.js';
2525
2626const sdk = createTestNodeSdk ( {
2727 serviceName : 'use-dataloader' ,
28- instrumentations : [
29- new DataloaderInstrumentation ( )
30- ]
31- } )
28+ instrumentations : [ new DataloaderInstrumentation ( ) ] ,
29+ } ) ;
3230sdk . start ( ) ;
3331
3432import Dataloader from 'dataloader' ;
3533
36- function getMd5HashFromIdx ( idx ) {
34+ function getMd5HashFromIdx ( idx ) {
3735 return crypto . createHash ( 'md5' ) . update ( String ( idx ) ) . digest ( 'hex' ) ;
3836}
3937const dataloader = new Dataloader (
@@ -45,7 +43,7 @@ const dataloader = new Dataloader(
4543) ;
4644
4745const tracer = trace . getTracer ( ) ;
48- await tracer . startActiveSpan ( 'manual' , async ( span ) => {
46+ await tracer . startActiveSpan ( 'manual' , async span => {
4947 await dataloader . load ( 1 ) ;
5048 span . end ( ) ;
5149} ) ;
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright The OpenTelemetry Authors
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * https://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,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
116module . exports = {
2- " env" : {
3- " mocha" : true ,
4- " node" : true
5- } ,
6- ...require ( '../../eslint.config.js' )
7- }
17+ env : {
18+ mocha : true ,
19+ node : true ,
20+ } ,
21+ ...require ( '../../eslint.config.js' ) ,
22+ } ;
You can’t perform that action at this time.
0 commit comments