apex / logs-js Goto Github PK
View Code? Open in Web Editor NEWApex Logs client for Node, Deno, and the browser
Home Page: https://apex.sh/logs/
License: MIT License
Apex Logs client for Node, Deno, and the browser
Home Page: https://apex.sh/logs/
License: MIT License
Hey there, tried sending invites to my team members but neither of them received the invitation email. My email is [email protected]. Thanks!
We love apex and want to stick with it but have been running up against issues. I've outlined them below, please let me know if you think Apex is the right solution for us at the moment or if it makes sense for us to migrate away from it.
Background
Our product is a browser extension that executes on web pages we don't control. Consequently, we log relatively large payloads to get a better idea of what was happening in the browser when the log was issued.
Problems we've faced
We initially saw exceptions thrown when our message strings exceeded the limit in structured data mode (#4 - thanks for your help with that). We created a new project in plain-text mode, and now the apex web interfaces freezes often. We often have to refresh the page to several times before a query produces data. We were also billed for $488 in charges last month for "BigQuery Analysis" (see screenshot below). This doesn't seem expected.
Conclusion
Given our use case, is it possible to run apex at low cost and with good performance?
Thanks in advance!
======================================================
Should have a build without NPM
Heya ๐,
Working with the JS client on both the server and client and loving it so far.
Would it be possible to add some sort of "snapshot" field to to the event type which isn't indexed/searchable?
Essentially it would be nice to catch a snapshot of an HTTP request when it fails, or the response from a USB device etc... currently I am adding this data to the fields
key and it does work, however it really muddies the fields column on the right hand side.
Hi, I can manually curl
my api endpoint...
http POST https://logs-xxxxxx-xx.a.run.app/add_events authorization:"Bearer xxxxx" events:='[{"message":"ioooooo","fields":{"lollai":"assai"},"level":"info"}]' project_id="test"
...but I can't get the client to work:
const { Client } = require('apex-logs')
const client = new Client({
url: 'https://logs-xxxxx-xxxx.a.run.app/',
authToken: '----'
})
async function run() {
while (true) {
await client.addEvents([{message: "hello"}], 'test')
await new Promise((resolve, reject) => setTimeout(resolve, 1000))
}
}
run().catch((err) => {
console.error(err)
throw err
})
internal/process/promises.js:213
triggerUncaughtException(err, true /* fromPromise */);
^
ClientError: Failed to parse malformed JSON body
at /.../logs/node_modules/apex-logs/dist/client.js:49:23
at Generator.next (<anonymous>)
at fulfilled (/.../logs/node_modules/apex-logs/dist/client.js:5:58)
at processTicksAndRejections (internal/process/task_queues.js:93:5) {
status: 400,
type: 'bad_request'
When I click on id and choose "Copy to clipboard" I get "undefined" copied instead of id value.
It does work for all the other fields. For id it shows "Copied to clipboard" toast but doesn't copy the value.
Hey there, seeing this error quite frequently:
Clustering encountered a key Msg_0_CLOUD_QUERY_TABLE.message that is 2115
bytes long, which is more than the maximum allowed length of 1024 bytes.
I have an example request that's failing, but it's long and contains some potentially sensitive information that I don't trust myself to remove so I can send it privately.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.