-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker example fails with "bucketName is empty" and "DEADLINE_EXCEEDED" #96
Comments
So I think I figured out where that Although defining the env variables mentioned here just led to new errors. I note the branch name "deprecating" and have a feeling that asking for support for getting this working is not the right move. Are there any plans to make newer/better/working sample emitters & thus a good example for devs to use so they can work backwards? |
Hi @dradetsky, thank you for reaching out us. The Java sample app (data emitter) has been moved to a branch and we do lack the good document for it. We'll update our Getting Started docs on it later. Thanks. To your problems,
The two problems you have should not impact Metrics and Traces data to be sent to AWS consoles with the right AWS Credentials. Have your found the data in your AWS account console with Docker Compose example at the end? Thanks again for the feedbacks and please let us know any issue you have and we'd like to discuss and improve. |
@mxiamxia fwiw, I managed to get my local environment working by replacing the sample app there with this thing from the js code: https://github.com/aws-observability/aws-otel-js/tree/master/integ-test/js-sdk-emitter. IMO, that thing is basically as complicated as the sample app needs to be. Even slightly more. As a developer, the very first thing I'm trying to do is figure out whether I have my local environment set up correctly, whether my containers can connect to aws, whether I'm getting my aws credentials loaded properly (see #100 btw), and that sort of thing. I don't yet care about mimicing regular business traffic, I just want a 'hello world xray' kind of thing to let me know my setup works. After that, I might want a sample app that in some way mimics real traffic, but maybe not. In any way, it's nowhere near as important as the sanity-check value provided by a stupid-simple thing like that integration test container. |
I totally agree with you the setup should be simple. Our goal is to have our examples simple enough and developers can also take it as a reference sample code for their applications. Thanks for your contribution (#100) : ) To address some of your feedbacks, we made some improvements on our Java sample app.(if you still need it). It removes all the unexpected errors you've seen and generate Traces and Metrics to AWS. (Documentations are WIP) I also sent a PR for creating Metrics with JS SDK to our Thanks! |
@mxiamxia I haven't tried the metrics thing, but it looks like exactly the sort of thing I wanted. Or at least, that I wanted yesterday before I figured it out the hard way. But still, nice! |
Thanks. Closed the issue. |
I'm trying to get otel working. I was following the instructions here:
https://aws-otel.github.io/docs/setup/docker-images
After running into a number of weird issues trying to instrument my own app & generate traces, I tried to simplify the problem by just running the example emitter so I could work backwards. Unfortunately, the instructions do not work for me.
I filled out the following env vars in the docker compose:
the first 3 with output from the awsapps sso page, and the last as us-east-2. When running I had two interesting issues. First, it attempts to connect to
localhost:4567
for some reason that's not explainedDon't know what that's about.
Anyway, it then has two following issues repeatedly
and also
Was there supposed to be a third image included in the docker-compose or something? I'm very confused. I'd have looked at the sample app source code, but I can't find it. Is it public?
The text was updated successfully, but these errors were encountered: