This repository has been archived by the owner on Sep 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always read thrift defs from
./
to better support bundling (#441)
Always reading the jaeger thrift definition file from the root dir (src) allows consumers to bundle jaeger-client, e.g. for uploading code to an AWS lambda function. To bundle jaeger-client with webpack for example, the thrift file needs to be copied into the output directory of the bundle like this: ```js { plugins: [ new CopyPlugin([ { from: require.resolve( 'jaeger-client/dist/src/jaeger-idl/thrift/jaeger.thrift' ), to: 'jaeger-idl/thrift/jaeger.thrift' } ]) ] } ``` With this in place `fs.readFileSync` will be able to find the file. Signed-off-by: Hendrik Liebau <mail@hendrik-liebau.de>
- Loading branch information
1 parent
0a11521
commit 67838e6
Showing
5 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters