File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1919 " tracing"
2020 ],
2121 "engines" : {
22- "node" : " >=14 "
22+ "node" : " ^18.19.0 || >=20.6.0 "
2323 },
2424 "author" : " OpenTelemetry Authors" ,
2525 "license" : " Apache-2.0" ,
Original file line number Diff line number Diff line change @@ -23,18 +23,17 @@ setupTracing('example-express-server');
2323import * as express from 'express' ;
2424import * as axios from 'axios' ;
2525import { RequestHandler } from 'express' ;
26- import type { Resource } from '@opentelemetry/resources' ;
2726
2827// Setup express
2928const app = express ( ) ;
3029const PORT = 8080 ;
3130
3231const getCrudController = ( ) => {
3332 const router = express . Router ( ) ;
34- const resources : Resource [ ] = [ ] ;
35- router . get ( '/' , ( req , res ) => res . send ( resources ) ) ;
33+ const things : unknown [ ] = [ ] ;
34+ router . get ( '/' , ( req , res ) => res . send ( things ) ) ;
3635 router . post ( '/' , ( req , res ) => {
37- resources . push ( req . body ) ;
36+ things . push ( req . body ) ;
3837 return res . status ( 201 ) . send ( req . body ) ;
3938 } ) ;
4039 return router ;
You can’t perform that action at this time.
0 commit comments