Comments (3)
Hi @crobinson42, thanks for raising the issue! Can you share a bit more about your set-up, or a small reproducible script? Thanks a lot!
from logtail-js.
@gyfis I don't know what to share with you except that I'm using the latest npm package with Node.js v16. As you can see in the first screenshot I am passing a string, event
, as the second arg and it's being spread in the logtail sdk.
from logtail-js.
@gyfis I don't know what to share with you except that I'm using the latest npm package with Node.js v16. As you can see in the first screenshot I am passing a string,
event
, as the second arg and it's being spread in the logtail sdk.
Thanks for that extra info, I understand the issue now (I missed that the event was a String).
We expect an object as the second argument (think: structured context for the log), and due to the nature of JavaScript, String does this.
Iām adding this to our pipeline; in the meantime, can you use an object instead of the string event? If you want to pass a string, you can always do { event: event }
. Thanks!
from logtail-js.
Related Issues (20)
- Handle circular reference stringifying HOT 4
- Version 0.3.0 break lib. HOT 2
- Add data scrubbing for sensitive fields HOT 1
- Uncaught ReferenceError: process is not defined HOT 1
- Cannot find module '@babel/generator' HOT 2
- Question: API query helper HOT 1
- Connection error throws and breaks execution HOT 5
- Invalid peer dependency specified in logtail/winston package HOT 2
- Unauthorized error on logs HOT 4
- Error logging with 0.4.0 HOT 3
- `await logtail.flush()` hangs (does not properly resolve) in v0.4.0 HOT 3
- support for edge environments (Cloudflare Workers, Vercel Serverless, etc) HOT 7
- feature request: sourcemap support HOT 2
- Add ability to color log outputs HOT 6
- How to override behavior for localhost HOT 4
- Logtail blocked by adblocker HOT 3
- MaxListenersExceededWarning: Possible EventEmitter memory leak detected. HOT 4
- Logtail fails gh-action workflows on a javascript boilerplate HOT 3
- Disable @logtail/edge's warning about missing executionCtx when the runtime is not Cloudflare HOT 5
- Improve `context.runtime.file` when `logtail` is called indirectly HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logtail-js.