Replies: 13 comments
-
@inductor could you share how you are loading your dependencies and requiring the exporter? E.g. Are you using a Gemfile + |
Beta Was this translation helpful? Give feedback.
-
Hi @arielvalentin I modified requires now, and got this error. I think name resolve is working and so is my jaeger and now wondering what this error shows.
|
Beta Was this translation helpful? Give feedback.
-
netcat shows the port for this host is open
apiVersion: v1
kind: Service
metadata:
labels:
app: jaeger
app.kubernetes.io/component: service-agent
app.kubernetes.io/instance: simplest
app.kubernetes.io/managed-by: jaeger-operator
app.kubernetes.io/name: simplest-agent
app.kubernetes.io/part-of: jaeger
name: simplest-agent
namespace: observability
spec:
clusterIP: None
clusterIPs:
- None
ipFamilies:
- IPv4
ipFamilyPolicy: SingleStack
ports:
- name: zk-compact-trft
port: 5775
protocol: UDP
- name: config-rest
port: 5778
- name: jg-compact-trft
port: 6831
protocol: UDP
- name: jg-binary-trft
port: 6832
protocol: UDP
selector:
app: jaeger
app.kubernetes.io/component: all-in-one
app.kubernetes.io/instance: simplest
app.kubernetes.io/managed-by: jaeger-operator
app.kubernetes.io/name: simplest
app.kubernetes.io/part-of: jaeger |
Beta Was this translation helpful? Give feedback.
-
Looking at the Gist you provided, I see you are setting the environment variable as well as manually configuring the exporter. I think you want to chose to configure this via Take a look here if you want to configure the Jaeger Collector or Agent: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/exporter/jaeger#how-do-i-get-started |
Beta Was this translation helpful? Give feedback.
-
I removed the https://github.com/cloudnativedaysjp/dreamkast/pull/859/files
|
Beta Was this translation helpful? Give feedback.
-
@inductor I did not notice this before but it looks like you are using a keyword arg In your snippet: c.add_span_processor(
OpenTelemetry::SDK::Trace::Export::BatchSpanProcessor.new(
exporter: OpenTelemetry::Exporter::Jaeger::AgentExporter.new(host: 'simplest-agent.observability', port: 6831)
)
) From the guide: c.add_span_processor(
OpenTelemetry::SDK::Trace::Export::BatchSpanProcessor.new(
OpenTelemetry::Exporter::Jaeger::AgentExporter.new(host: 'simplest-agent.observability', port: 6831)
)
) |
Beta Was this translation helpful? Give feedback.
-
Checking in with you @inductor. Did that fix your issue? |
Beta Was this translation helpful? Give feedback.
-
@arielvalentin One question, the service name is "unknown_service" while I set the service name by |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
The Looking at your PR you are both setting the environment variable |
Beta Was this translation helpful? Give feedback.
-
I see now. You are creating a tracer inside of the configure block. That ends up creating a tracer that is not properly configured. Create the tracer outside of the configure block. |
Beta Was this translation helpful? Give feedback.
-
@arielvalentin This approach works. thanks for your advice! Btw I'm completely new to open telemetry and jeager, and I noticed that in the current setting I only see MySQL traces, but not app tracing in rails application while I have |
Beta Was this translation helpful? Give feedback.
-
@inductor My recommendation would be to start with enabling Please take a look at the quick start guide for more details: https://github.com/open-telemetry/opentelemetry-ruby/blob/main/website_docs/quick_start.md Also I am going to convert this to a discussion since there is no bug to fix here. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description of the bug
Hi, I'm trying to use this plugin with rails and I get the following error but it looks very vague and not sure what's causing.
My config is as follows
I'm running this on EKS
Share details about your runtime
Operating system details: Linux, Ubuntu 20.04 LTS
RUBY_ENGINE: "ruby"
RUBY_VERSION: "2.7.2"
RUBY_DESCRIPTION: "ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]"
Share a simplified reproduction if possible
Beta Was this translation helpful? Give feedback.
All reactions