kbariotis
Repos
123
Followers
232
Following
55

Virtual whiteboard for sketching hand-drawn like diagrams

41054
3317

A set of standard document templates.

1980
161

The opinionated presentation app.

20
1

Declarative functional cron expression builder

18
1

HTTP Error collection to use in your next REST API.

272
17

My Gatsby.js powered personal homepage

67
14

Events

Created at 1 day ago
Created at 1 day ago
Created at 3 days ago
started
Created at 1 week ago
started
Created at 1 week ago
started
Created at 1 week ago
Created at 1 week ago
Created at 1 week ago
Created at 1 week ago
issue comment
GraphQL instrumentation and service name

btw Im not able to setup the repo unfortunately

  rails-six git:(tonycthsu/graphql-service-name-debug) ../../script/build-images -v 2.3

== Building base images... ==
Sending build context to Docker daemon  3.072kB
Step 1/2 : FROM datadog/agent
 ---> 31a3722fafe5
Step 2/2 : COPY agent.yaml /etc/datadog-agent/datadog.yaml
 ---> Using cache
 ---> cb91f63f06fa
Successfully built cb91f63f06fa
Successfully tagged datadog/dd-apm-demo:agent
../../script/build-images: line 30: [: -v: unary operator expected
Sending build context to Docker daemon  53.76kB
Step 1/14 : FROM ruby:2.1
 ---> 223d1eaa9523
Step 2/14 : RUN printf "deb http://archive.debian.org/debian/ jessie main\ndeb-src http://archive.debian.org/debian/ jessie main\ndeb http://security.debian.org jessie/updates main\ndeb-src http://security.debian.org jessie/updates main" > /etc/apt/sources.list
 ---> Using cache
 ---> 7b4484c317a1
Step 3/14 : ENV DEBIAN_FRONTEND=noninteractive
 ---> Using cache
 ---> 166c1fe15bea
Step 4/14 : RUN set -ex &&         echo "===> Installing dependencies" &&         apt-get -y update &&         apt-get install -y --force-yes --no-install-recommends             curl wget tar gzip gnupg apt-transport-https ca-certificates tzdata locales &&                 echo "===> Installing NodeJS" &&         apt-get install -y --force-yes --no-install-recommends nodejs &&                 echo "===> Installing Yarn" &&         curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - &&         echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list &&         apt-get update &&         apt-get install -y --force-yes --no-install-recommends yarn &&                 echo "===> Installing database libraries" &&         apt-get install -y --force-yes --no-install-recommends             postgresql-client sqlite3 &&                 echo "===> Installing dev tools" &&         mkdir -p /usr/share/man/man1 &&         apt-get install -y --force-yes --no-install-recommends             sudo git openssh-client rsync vim             net-tools netcat parallel unzip zip bzip2 &&                 echo "===> Cleaning up" &&         rm -rf /var/lib/apt/lists/*;
 ---> Using cache
 ---> 943422f9c8eb
Step 5/14 : RUN ln -sf /usr/share/zoneinfo/Etc/UTC /etc/localtime
 ---> Using cache
 ---> ada59dce3bcc
Step 6/14 : RUN locale-gen en_US.UTF-8
 ---> Using cache
 ---> 0c2661f1296c
Step 7/14 : ENV LANG en_US.UTF-8
 ---> Using cache
 ---> ee2230b54361
Step 8/14 : ENV LANGUAGE en_US:en
 ---> Using cache
 ---> d8f2919cbedd
Step 9/14 : RUN gem update --system 2.7.9
 ---> Using cache
 ---> bd28ced5e507
Step 10/14 : RUN gem install bundler -v '1.17.3'
 ---> Using cache
 ---> 1c5f5840422d
Step 11/14 : ENV BUNDLE_SILENCE_ROOT_WARNING 1
 ---> Using cache
 ---> fe73c36b1002
Step 12/14 : COPY ./include /vendor/dd-demo
 ---> Using cache
 ---> dff782a5cbf1
Step 13/14 : ENV RUBYLIB /vendor/dd-demo
 ---> Using cache
 ---> bab31f11f0f2
Step 14/14 : ENV RUBYOPT -rdatadog/demo_env
 ---> Using cache
 ---> 9124c4cec788
Successfully built 9124c4cec788
Successfully tagged datadog/dd-apm-demo:rb-2.1
Sending build context to Docker daemon  53.76kB
Step 1/14 : FROM ruby:2.2
 ---> e46800969d03
Step 2/14 : RUN printf "deb http://archive.debian.org/debian/ jessie main\ndeb-src http://archive.debian.org/debian/ jessie main\ndeb http://security.debian.org jessie/updates main\ndeb-src http://security.debian.org jessie/updates main" > /etc/apt/sources.list
 ---> Using cache
 ---> 86ab3ee13183
Step 3/14 : ENV DEBIAN_FRONTEND=noninteractive
 ---> Using cache
 ---> 26c6c989a6b0
Step 4/14 : RUN set -ex &&         echo "===> Installing dependencies" &&         apt-get -y update &&         apt-get install -y --force-yes --no-install-recommends             curl wget tar gzip gnupg apt-transport-https ca-certificates tzdata locales &&                 echo "===> Installing NodeJS" &&         apt-get install -y --force-yes --no-install-recommends nodejs &&                 echo "===> Installing Yarn" &&         curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - &&         echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list &&         apt-get update &&         apt-get install -y --force-yes --no-install-recommends yarn &&                 echo "===> Installing database libraries" &&         apt-get install -y --force-yes --no-install-recommends             postgresql-client sqlite3 &&                 echo "===> Installing dev tools" &&         mkdir -p /usr/share/man/man1 &&         apt-get install -y --force-yes --no-install-recommends             sudo git openssh-client rsync vim             net-tools netcat parallel unzip zip bzip2 &&                 echo "===> Cleaning up" &&         rm -rf /var/lib/apt/lists/*;
 ---> Running in 15a5502b47e8
+ echo ===> Installing dependencies
+ apt-get -y update
===> Installing dependencies
Get:1 http://security.debian.org jessie/updates InRelease [44.9 kB]
Ign http://archive.debian.org jessie InRelease
Get:2 http://archive.debian.org jessie Release.gpg [2420 B]
Get:3 http://archive.debian.org jessie Release [148 kB]
Ign http://archive.debian.org jessie Release
Get:4 http://security.debian.org jessie/updates/main Sources [473 kB]
Get:5 http://archive.debian.org jessie/main Sources [9169 kB]
Get:6 http://archive.debian.org jessie/main arm64 Packages [8593 kB]
Fetched 18.4 MB in 4s (4366 kB/s)
W: GPG error: http://archive.debian.org jessie Release: The following signatures were invalid: KEYEXPIRED 1587841717
W: Failed to fetch http://security.debian.org/dists/jessie/updates/InRelease  Unable to find expected entry 'main/binary-arm64/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.
The command '/bin/sh -c set -ex &&         echo "===> Installing dependencies" &&         apt-get -y update &&         apt-get install -y --force-yes --no-install-recommends             curl wget tar gzip gnupg apt-transport-https ca-certificates tzdata locales &&                 echo "===> Installing NodeJS" &&         apt-get install -y --force-yes --no-install-recommends nodejs &&                 echo "===> Installing Yarn" &&         curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - &&         echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list &&         apt-get update &&         apt-get install -y --force-yes --no-install-recommends yarn &&                 echo "===> Installing database libraries" &&         apt-get install -y --force-yes --no-install-recommends             postgresql-client sqlite3 &&                 echo "===> Installing dev tools" &&         mkdir -p /usr/share/man/man1 &&         apt-get install -y --force-yes --no-install-recommends             sudo git openssh-client rsync vim             net-tools netcat parallel unzip zip bzip2 &&                 echo "===> Cleaning up" &&         rm -rf /var/lib/apt/lists/*;' returned a non-zero code: 100
➜  rails-six git:(tonycthsu/graphql-service-name-debug) ../../script/build-images -v 3.0.4

== Building base images... ==
Sending build context to Docker daemon  3.072kB
Step 1/2 : FROM datadog/agent
 ---> 31a3722fafe5
Step 2/2 : COPY agent.yaml /etc/datadog-agent/datadog.yaml
 ---> Using cache
 ---> cb91f63f06fa
Successfully built cb91f63f06fa
Successfully tagged datadog/dd-apm-demo:agent
../../script/build-images: line 30: [: -v: unary operator expected
Sending build context to Docker daemon  53.76kB
Step 1/14 : FROM ruby:2.1
 ---> 223d1eaa9523
Step 2/14 : RUN printf "deb http://archive.debian.org/debian/ jessie main\ndeb-src http://archive.debian.org/debian/ jessie main\ndeb http://security.debian.org jessie/updates main\ndeb-src http://security.debian.org jessie/updates main" > /etc/apt/sources.list
 ---> Using cache
 ---> 7b4484c317a1
Step 3/14 : ENV DEBIAN_FRONTEND=noninteractive
 ---> Using cache
 ---> 166c1fe15bea
Step 4/14 : RUN set -ex &&         echo "===> Installing dependencies" &&         apt-get -y update &&         apt-get install -y --force-yes --no-install-recommends             curl wget tar gzip gnupg apt-transport-https ca-certificates tzdata locales &&                 echo "===> Installing NodeJS" &&         apt-get install -y --force-yes --no-install-recommends nodejs &&                 echo "===> Installing Yarn" &&         curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - &&         echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list &&         apt-get update &&         apt-get install -y --force-yes --no-install-recommends yarn &&                 echo "===> Installing database libraries" &&         apt-get install -y --force-yes --no-install-recommends             postgresql-client sqlite3 &&                 echo "===> Installing dev tools" &&         mkdir -p /usr/share/man/man1 &&         apt-get install -y --force-yes --no-install-recommends             sudo git openssh-client rsync vim             net-tools netcat parallel unzip zip bzip2 &&                 echo "===> Cleaning up" &&         rm -rf /var/lib/apt/lists/*;
 ---> Using cache
 ---> 943422f9c8eb
Step 5/14 : RUN ln -sf /usr/share/zoneinfo/Etc/UTC /etc/localtime
 ---> Using cache
 ---> ada59dce3bcc
Step 6/14 : RUN locale-gen en_US.UTF-8
 ---> Using cache
 ---> 0c2661f1296c
Step 7/14 : ENV LANG en_US.UTF-8
 ---> Using cache
 ---> ee2230b54361
Step 8/14 : ENV LANGUAGE en_US:en
 ---> Using cache
 ---> d8f2919cbedd
Step 9/14 : RUN gem update --system 2.7.9
 ---> Using cache
 ---> bd28ced5e507
Step 10/14 : RUN gem install bundler -v '1.17.3'
 ---> Using cache
 ---> 1c5f5840422d
Step 11/14 : ENV BUNDLE_SILENCE_ROOT_WARNING 1
 ---> Using cache
 ---> fe73c36b1002
Step 12/14 : COPY ./include /vendor/dd-demo
 ---> Using cache
 ---> dff782a5cbf1
Step 13/14 : ENV RUBYLIB /vendor/dd-demo
 ---> Using cache
 ---> bab31f11f0f2
Step 14/14 : ENV RUBYOPT -rdatadog/demo_env
 ---> Using cache
 ---> 9124c4cec788
Successfully built 9124c4cec788
Successfully tagged datadog/dd-apm-demo:rb-2.1
Sending build context to Docker daemon  53.76kB
Step 1/14 : FROM ruby:2.2
 ---> e46800969d03
Step 2/14 : RUN printf "deb http://archive.debian.org/debian/ jessie main\ndeb-src http://archive.debian.org/debian/ jessie main\ndeb http://security.debian.org jessie/updates main\ndeb-src http://security.debian.org jessie/updates main" > /etc/apt/sources.list
 ---> Using cache
 ---> 86ab3ee13183
Step 3/14 : ENV DEBIAN_FRONTEND=noninteractive
 ---> Using cache
 ---> 26c6c989a6b0
Step 4/14 : RUN set -ex &&         echo "===> Installing dependencies" &&         apt-get -y update &&         apt-get install -y --force-yes --no-install-recommends             curl wget tar gzip gnupg apt-transport-https ca-certificates tzdata locales &&                 echo "===> Installing NodeJS" &&         apt-get install -y --force-yes --no-install-recommends nodejs &&                 echo "===> Installing Yarn" &&         curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - &&         echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list &&         apt-get update &&         apt-get install -y --force-yes --no-install-recommends yarn &&                 echo "===> Installing database libraries" &&         apt-get install -y --force-yes --no-install-recommends             postgresql-client sqlite3 &&                 echo "===> Installing dev tools" &&         mkdir -p /usr/share/man/man1 &&         apt-get install -y --force-yes --no-install-recommends             sudo git openssh-client rsync vim             net-tools netcat parallel unzip zip bzip2 &&                 echo "===> Cleaning up" &&         rm -rf /var/lib/apt/lists/*;
 ---> Running in c2671fbf0e9d
+ echo ===> Installing dependencies
+ apt-get -y update
===> Installing dependencies
Get:1 http://security.debian.org jessie/updates InRelease [44.9 kB]
Ign http://archive.debian.org jessie InRelease
Get:2 http://archive.debian.org jessie Release.gpg [2420 B]
Get:3 http://archive.debian.org jessie Release [148 kB]
Ign http://archive.debian.org jessie Release
Get:4 http://security.debian.org jessie/updates/main Sources [473 kB]
Get:5 http://archive.debian.org jessie/main Sources [9169 kB]
Get:6 http://archive.debian.org jessie/main arm64 Packages [8593 kB]
Fetched 18.4 MB in 4s (4338 kB/s)
W: GPG error: http://archive.debian.org jessie Release: The following signatures were invalid: KEYEXPIRED 1587841717
W: Failed to fetch http://security.debian.org/dists/jessie/updates/InRelease  Unable to find expected entry 'main/binary-arm64/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.
The command '/bin/sh -c set -ex &&         echo "===> Installing dependencies" &&         apt-get -y update &&         apt-get install -y --force-yes --no-install-recommends             curl wget tar gzip gnupg apt-transport-https ca-certificates tzdata locales &&                 echo "===> Installing NodeJS" &&         apt-get install -y --force-yes --no-install-recommends nodejs &&                 echo "===> Installing Yarn" &&         curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - &&         echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list &&         apt-get update &&         apt-get install -y --force-yes --no-install-recommends yarn &&                 echo "===> Installing database libraries" &&         apt-get install -y --force-yes --no-install-recommends             postgresql-client sqlite3 &&                 echo "===> Installing dev tools" &&         mkdir -p /usr/share/man/man1 &&         apt-get install -y --force-yes --no-install-recommends             sudo git openssh-client rsync vim             net-tools netcat parallel unzip zip bzip2 &&                 echo "===> Cleaning up" &&         rm -rf /var/lib/apt/lists/*;' returned a non-zero code: 100
Created at 2 weeks ago
issue comment
GraphQL instrumentation and service name

@TonyCTHsu apologies but something weird is going on. I noticed that in your branch you'set a different name for the GraphQL service. Is it possible that there will be a conflict if we set it to the same service name as the main service name?

Created at 2 weeks ago
issue comment
GraphQL instrumentation and service name

I did @TonyCTHsu , its very weird, I can't see the operation name even though I can see the span.

Can you please maybe give me access to the repo tonycthsu/graphql-service-name-debug that you mentioned above? I can't find it on GH. At least I can see the full implementation, in case you've done something custom and I missed it.

Thank you for all your help @TonyCTHsu 👍 :)

Created at 2 weeks ago
issue comment
GraphQL instrumentation and service name

ahh thank you @TonyCTHsu now I get it, I can see this in our own setup as well but what I was looking for is the execute.graphql to be as an DD operation as well, not just as a span.

I can't see the execute.graphql in the operations list. Is that expected? image

Created at 2 weeks ago
Created at 3 weeks ago
issue comment
GraphQL instrumentation and service name

@TonyCTHsu maybe you have an update on this? if you're certain that this cannot be an issue with this library, then maybe I should look for the issue somewhere else. Thanks :)

Created at 3 weeks ago

switch to yarn just because NPM makes my life harder

Created at 3 weeks ago

process.exit blog post

Created at 3 weeks ago
issue comment
GraphQL instrumentation and service name

Thank you @TonyCTHsu, its ruby 3.0.4 and GraphQL I don't see that package, maybe we're using a different one ahmm maybe Apollo?

image

Created at 1 month ago
started
Created at 1 month ago
issue comment
GraphQL instrumentation and service name

ah @TonyCTHsu thanks for your response and apologies for not mentioning that, but I tried your suggestion already and it still doesn't work. It doesn't picks up the service_name parameter at all.

Created at 1 month ago
opened issue
GraphQL instrumentation and service name

Current behaviour

DataDog splits two separate services, one from the one defined in the Datadog initializer and one named ruby-graphql(the default for the GraphQL/Datadog integration)

Expected behaviour

All traces and operations should be shown under the same service, name in the intializer.

Steps to reproduce

Datadog initializer

Datadog.configure do |c|
  if Rails.env.production? || Rails.env.staging?
    c.service = 'SERVICE-NAME'
    c.tracing.instrument :graphql, schemas: [GroverSchema]
    c.tracing.instrument :rails
  else
    c.tracing.enabled = false
  end
end

Environment

  • ddtrace version: 1.5
  • Configuration block (Datadog.configure ...):
  • Ruby version:
  • Operating system:
  • Relevant library versions:
Created at 1 month ago
Created at 1 month ago
Created at 1 month ago
Created at 1 month ago
started
Created at 2 months ago
issue comment
how to run migrations by code

@janpio I have a use case for you. We're trying out https://github.com/testcontainers/testcontainers-node and we would like each of our test cases to bring up their own containers (postgres in this case), migrate the full database using Prisma programmatic API which will be fed with the temporal hosts/ports given from testcontainers (because it assigns different ones in each container) and then have all test cases run in parallel.

So programmatic access to Prisma will allow us to do that in just a cleaner way instead of running a script directly from the test case. Thanks, hope that makes sense

Created at 2 months ago
No Docker client strategy found on mac m1

ok @itsravenous thank you I think I found the issue, the symlink was actually not right. The right path of RD's socket is in unix:///Users/${USER}/.rd/docker.sock and that's where the /var/run/docker.sock should be pointing to. :) thank you for your time thought :)

Created at 2 months ago
No Docker client strategy found on mac m1

yes @itsravenous I did and its just the same. :/

Created at 2 months ago
No Docker client strategy found on mac m1

I'm facing the exact same issue but I'm using Rancher Desktop, Im not sure if that would make any difference. I symlinked the socket file from home directory but the error still comes up.

Created at 2 months ago
started
Created at 2 months ago