gadnuk_breaker_of_worlds
12/19/2023, 7:05 PMArnø
12/20/2023, 8:22 AMpigri
12/20/2023, 5:22 PMThanks for reaching out to the Datadog support team! My name is Victorien and I'll handle your request from now on.
 
After further investigation, this does appear to be a limitation from Cloudflare. Logs are sent as arrays of objects and sent as part of Workers Trace Events: https://developers.cloudflare.com/logs/reference/log-fields/account/workers_trace_events/.
 
On our end, there is no option to split logs after ingestion. This action must be performed upstream. Therefore, I would suggest reaching out to Cloudflare to inquire whether they could eventually provide flexibility in the way logs are output.
 
Alternatively, you could send your Cloudflare logs to a custom destination, split those logs on your end (with a script for example), and then forward these logs to Datadog (it could be achieved by using the Datadog Agent or our API: https://docs.datadoghq.com/logs/log_collection/?tab=host).roger_57097
12/21/2023, 7:06 AMamr21_
12/21/2023, 10:19 AMjs
{
messages: {
     "mkey1": "....",
     "mkey2": "....",
     }
}2adventure
12/21/2023, 2:22 PMts
export interface Env {
    MY_SERVICE_BINDING: any;
}toml
services = [
  { binding = "MY_SERVICE_BINDING", service = "the-worker-im-calling" }
]ts
const result = await env.MY_SERVICE_BINDING.fetch("MY-STRING");c_bonadio
12/21/2023, 3:59 PM_arizmendi_
12/22/2023, 4:33 AMcyco130
12/22/2023, 12:23 PMwillin
12/22/2023, 12:31 PMa.com/api/sth
b.com/api/sth
c.com/api/stha.com/api/sth2adventure
12/22/2023, 9:47 PMts
const ai = new Ai(env.AI);
const prompt = [
            { role: "system", content: "Prompt" },
            { role: "user", content: "Prompt" },
            { role: "assistant", content: "Prompt" },
]
const result = await ai.run('@cf/meta/llama-2-7b-chat-int8', { messages: prompt });ftqo
12/22/2023, 10:13 PMthatbeanlady
12/23/2023, 2:07 AMslowaspondwater
12/23/2023, 2:53 AMsend errorsnosebleeeed
12/23/2023, 10:03 AMangusma
12/23/2023, 3:09 PMjs
const ai = new Ai(env.AI);
const output =  ai.run('@cf/meta/llama-2-7b-chat-int8', {
  prompt: args.prompt
}).then(function (result){
  return result;
}).then(async function (result){
  await fetch('https://discord.com/api/v10/webhooks/'+env.DISCORD_APPLICATION_ID+'/'+interaction.token+'/messages/@original',{
      method:'PATCH',
      headers:{'content-type': 'application/json;charset=UTF-8',},
      body:JSON.stringify({
          content: result.response,
      })
  })
})✘ [ERROR] Uncaught (in promise) SyntaxError: Unexpected token 'E', "ERROR 3026"... is not valid JSON
      at async InferenceSession.run
  ({PROJECT_DIR}/.wrangler/tmp/dev-5g4ZDx/server.js:6124:26)
      at async Ai.run
  ({PROJECT_DIR}/.wrangler/tmp/dev-5g4ZDx/server.js:6192:30)
✘ [ERROR] Uncaught (async) SyntaxError: Unexpected token 'E', "ERROR 3026"... is not valid JSONdevced_46565
12/24/2023, 1:41 AMG4G4N
12/24/2023, 10:04 AMtrader
12/24/2023, 11:32 AMts
// Add Cloudflare Access Service Token credentials as global variables, used when Worker
// establishes the connection to Cloudflare Tunnel. This ensures only approved services can
// connect to your Tunnel.
declare global {
    var CF_CLIENT_ID: string | undefined;
    var CF_CLIENT_SECRET: string | undefined;
}
globalThis.CF_CLIENT_ID = CF_SERVICE_CLIENT_ID;
globalThis.CF_CLIENT_SECRET = CF_SERVICE_CLIENT_SECRET;
...Iron_Max
12/25/2023, 4:46 PMsupport@domain.com1mail@gmail.com2mail@gmail.com3mail@gmail.combnowak_83546
12/25/2023, 6:25 PMworkerd/jsg/util.c++:281: error: e = kj/compat/tls.c++:221: failed: TLS peer's certificate is not trusted; reason = unable to get local issuer certificatewrangler.tomllocal_protocol = "https"wrangler.devNODE_EXTRA_CA_CERTS=/absolute/path/to/fullchain.pem wrangler dev^3.22.1FROM node:20-slim as platform-dev
do stuff
RUN apt-get install procps openssl -yjustjumper_
12/25/2023, 9:38 PMxarvinss
12/26/2023, 11:15 PMBearer ${env.API_KEY}plopix
12/27/2023, 12:56 AMcfored
12/27/2023, 1:38 AMwillin
12/27/2023, 3:42 AMgadnuk_breaker_of_worlds
12/27/2023, 9:43 AMEezergoode
12/27/2023, 11:03 PMfetch(request)Erisa | Support Engineer
12/28/2023, 11:40 AMcolearendt
12/28/2023, 12:29 PMapplication/jsondata.bodyapplication/x-www-form-urlencodedFormData()FormDataitty-router-openapi