René's URL Explorer Experiment


Title: Service shutdown when instrumenting with javaagent · Issue #255 · hypertrace/javaagent · GitHub

Open Graph Title: Service shutdown when instrumenting with javaagent · Issue #255 · hypertrace/javaagent

X Title: Service shutdown when instrumenting with javaagent · Issue #255 · hypertrace/javaagent

Description: Tried instrumenting one of the hypertrace java service (https://github.com/hypertrace/hypertrace-service/tree/main/hypertrace-data-config-service) with java agent. The service was deployed in k8s cluster locally using helm. Dockerfile us...

Open Graph Description: Tried instrumenting one of the hypertrace java service (https://github.com/hypertrace/hypertrace-service/tree/main/hypertrace-data-config-service) with java agent. The service was deployed in k8s c...

X Description: Tried instrumenting one of the hypertrace java service (https://github.com/hypertrace/hypertrace-service/tree/main/hypertrace-data-config-service) with java agent. The service was deployed in k8s c...

Opengraph URL: https://github.com/hypertrace/javaagent/issues/255

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Service shutdown when instrumenting with javaagent ","articleBody":"Tried instrumenting one of the hypertrace java service (https://github.com/hypertrace/hypertrace-service/tree/main/hypertrace-data-config-service) with java agent.\r\nThe service was deployed in k8s cluster locally using helm. \r\n\r\nDockerfile used for building the image (locally built the service image to embed agent):\r\n```\r\nFROM hypertrace/javaagent:latest\r\nARG COMMIT_SHA=unknown\r\nLABEL commit_sha=${COMMIT_SHA}\r\nENV COMMIT_SHA=${COMMIT_SHA}\r\nLABEL maintainer=\"Hypertrace 'https://www.hypertrace.org/'\"\r\n#RUN wget https://github.com/hypertrace/javaagent/releases/latest/download/hypertrace-agent-all.jar -O /javaagent.jar ;\r\nWORKDIR /app\r\n\r\nCOPY scripts/hypertrace-data-config-service run\r\nCOPY libs libs\r\nCOPY resources resources\r\nCOPY classes classes\r\nENV SERVICE_NAME=hypertrace-data-config-service CLUSTER_NAME=default-cluster POD_NAME=default-pod\r\nENTRYPOINT [\"./run\"]\r\n```\r\nThe docker image can be found here: https://hub.docker.com/repository/docker/rishabh691/hypertrace-data-config-service (rishabh691/hypertrace-data-config-service:test1)\r\n\r\nFollowing env vars were passed in k8s deployment.\r\n```\r\n        - name: JAVA_TOOL_OPTIONS\r\n          value: -XX:InitialRAMPercentage=50.0 -XX:MaxRAMPercentage=75.0 -javaagent:/opt/hypertrace/hypertrace-agent-all.jar\r\n        - name: HT_SERVICE_NAME\r\n          value: data-config-service\r\n        - name: HT_REPORTING_ENDPOINT\r\n          value: http://hypertrace-oc-collector:9411/api/v2/spans\r\n```\r\nThe service crashes with following error:\r\n```\r\nPicked up JAVA_TOOL_OPTIONS: -XX:InitialRAMPercentage=50.0 -XX:MaxRAMPercentage=75.0 -javaagent:/opt/hypertrace/hypertrace-agent-all.jar\r\n[main] INFO org.hypertrace.agent.core.config.HypertraceConfig - Config loaded: {\"serviceName\":\"data-config-service\",\"reporting\":{\"endpoint\":\"http://hypertrace-oc-collector:9411/api/v2/spans\",\"opa\":{\"endpoint\":\"http://opa.traceableai:8181/\",\"pollPeriodSeconds\":30}},\"dataCapture\":{\"httpHeaders\":{\"request\":true,\"response\":true},\"httpBody\":{\"request\":true,\"response\":true},\"rpcMetadata\":{\"request\":true,\"response\":true},\"rpcBody\":{\"request\":true,\"response\":true},\"bodyMaxSizeBytes\":131072},\"propagationFormats\":[\"TRACECONTEXT\"]}\r\n[opentelemetry.auto.trace 2021-02-07 12:59:11:966 +0000] [main] INFO io.opentelemetry.javaagent.tooling.VersionLogger - opentelemetry-javaagent - version: 0.9.7\r\n[opentelemetry.auto.trace 2021-02-07 12:59:12:169 +0000] [main] INFO org.hypertrace.agent.core.config.HypertraceConfig - Config loaded: {\"serviceName\":\"data-config-service\",\"reporting\":{\"endpoint\":\"http://hypertrace-oc-collector:9411/api/v2/spans\",\"opa\":{\"endpoint\":\"http://opa.traceableai:8181/\",\"pollPeriodSeconds\":30}},\"dataCapture\":{\"httpHeaders\":{\"request\":true,\"response\":true},\"httpBody\":{\"request\":true,\"response\":true},\"rpcMetadata\":{\"request\":true,\"response\":true},\"rpcBody\":{\"request\":true,\"response\":true},\"bodyMaxSizeBytes\":131072},\"propagationFormats\":[\"TRACECONTEXT\"]}\r\n[opentelemetry.auto.trace 2021-02-07 12:59:12:583 +0000] [main] INFO io.opentelemetry.javaagent.tooling.PropagatorsInitializer - Added tracecontext propagator\r\n[opentelemetry.auto.trace 2021-02-07 12:59:14:280 +0000] [main] INFO io.opentelemetry.javaagent.tooling.OpenTelemetryInstaller - Installed span exporter: io.opentelemetry.exporter.zipkin.ZipkinSpanExporter\r\n[opentelemetry.auto.trace 2021-02-07 12:59:17:082 +0000] [main] WARN io.opentelemetry.javaagent.tooling.InstrumentationModule - Helper classes and resources won't be injected if no types are instrumented: methods\r\nHypertrace agent started, version: 0.9.7\r\n2021-02-07 12:59:30.247 [main] INFO  o.h.c.s.PlatformServiceLauncher - Trying to start PlatformService ...\r\n2021-02-07 12:59:30.355 [main] WARN  o.h.c.s.c.ConfigUtils - Cannot find Property: bootstrap.config.uri in neither JVM parameter nor OS environment\r\n2021-02-07 12:59:30.440 [main] WARN  o.h.c.s.c.ConfigUtils - Cannot find Property: container.name in neither JVM parameter nor OS environment\r\n2021-02-07 12:59:30.440 [main] INFO  o.h.c.s.c.DirectoryBasedConfigClient - Trying to compile configs under directory: /app/resources/configs\r\n2021-02-07 12:59:30.441 [main] INFO  o.h.c.s.c.DirectoryBasedConfigClient - Loading config from path: /app/resources/configs/hypertrace-data-config-service/application.conf\r\n[opentelemetry.auto.trace 2021-02-07 12:59:30:833 +0000] [opentelemetry-exec-shutdown-hook] WARN io.opentelemetry.javaagent.tooling.CommonTaskExecutor - Periodic task scheduler is shutdown. Will not run: cleaner for {}\r\n2021-02-07 12:59:32.357 [main] INFO  o.h.c.s.c.DirectoryBasedConfigClient - Overrided Configs are listed below:\r\n2021-02-07 12:59:32.431 [main] INFO  o.h.c.s.c.ConfigUtils - service.name = Unquoted(\"hypertrace-data-config-service\")\r\n2021-02-07 12:59:32.446 [main] INFO  o.h.c.s.c.ConfigUtils - service.admin.port = ConfigInt(9013)\r\n2021-02-07 12:59:32.533 [main] INFO  o.h.c.s.c.ConfigUtils - main.class = Unquoted(\"org.hypertrace.service.HypertraceDataConfigService\")\r\n2021-02-07 12:59:32.534 [main] INFO  o.h.c.s.c.ConfigUtils - service.port = ConfigInt(9012)\r\n2021-02-07 12:59:33.150 [main] WARN  o.h.c.s.c.ConfigUtils - Cannot find Property: container.name in neither JVM parameter nor OS environment\r\n2021-02-07 12:59:33.150 [main] INFO  o.h.c.s.c.DirectoryBasedConfigClient - Trying to compile configs under directory: /app/resources/configs\r\n2021-02-07 12:59:33.150 [main] INFO  o.h.c.s.c.DirectoryBasedConfigClient - Loading config from path: /app/resources/configs/hypertrace-data-config-service/application.conf\r\n2021-02-07 12:59:33.156 [main] INFO  o.h.c.s.c.DirectoryBasedConfigClient - Overrided Configs are listed below:\r\n2021-02-07 12:59:33.231 [main] INFO  o.h.c.s.c.ConfigUtils - service.name = Unquoted(\"hypertrace-data-config-service\")\r\n2021-02-07 12:59:33.231 [main] INFO  o.h.c.s.c.ConfigUtils - service.admin.port = ConfigInt(9013)\r\n2021-02-07 12:59:33.231 [main] INFO  o.h.c.s.c.ConfigUtils - main.class = Unquoted(\"org.hypertrace.service.HypertraceDataConfigService\")\r\n2021-02-07 12:59:33.233 [main] INFO  o.h.c.s.c.ConfigUtils - service.port = ConfigInt(9012)\r\n2021-02-07 12:59:33.234 [main] INFO  o.h.c.s.PlatformService - Starting the service by using this metrics configuration Config(SimpleConfigObject({}))\r\n2021-02-07 12:59:34.143 [main] INFO  o.h.c.s.m.PlatformMetricsRegistry - Trying to init PrometheusReporter\r\n2021-02-07 12:59:34.547 [main] INFO  o.h.c.s.m.PlatformMetricsRegistry - Setting default tags for all metrics to: {app=hypertrace-data-config-service}\r\n[opentelemetry.auto.trace 2021-02-06 19:35:08:046 +0000] [Thread-0] WARN io.opentelemetry.javaagent.tooling.CommonTaskExecutor - Periodic task scheduler is shutdown. Will not run: cleaner for {}\r\n2021-02-06 19:35:08.133 [Thread-0] ERROR o.h.c.s.PlatformServiceLauncher - Error while calling quitquitquit\r\norg.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:15020 [/127.0.0.1] failed: Connection refused (Connection refused)\r\n\tat org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:156) ~[httpclient-4.5.13.jar:4.5.13]\r\n\tat org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376) ~[httpclient-4.5.13.jar:4.5.13]\r\n\tat org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393) ~[httpclient-4.5.13.jar:4.5.13]\r\n\tat org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) ~[httpclient-4.5.13.jar:4.5.13]\r\n\tat org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186) ~[httpclient-4.5.13.jar:4.5.13]\r\n\tat org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) ~[httpclient-4.5.13.jar:4.5.13]\r\n```\r\nAm I misconfiguring the agent or missing something? ","author":{"url":"https://github.com/findingrish","@type":"Person","name":"findingrish"},"datePublished":"2021-02-07T13:39:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/255/javaagent/issues/255"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:cdd0c0ba-dd87-ea2e-8cd5-f565e037c7f1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDDF4:49C5:6706F0:95E41D:6A4E0DB3
html-safe-nonce6ecfbf59f4f6e1fc309c0efa8b08005a21cb578d8a07e363505f1297303a41fa
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEREY0OjQ5QzU6NjcwNkYwOjk1RTQxRDo2QTRFMERCMyIsInZpc2l0b3JfaWQiOiIyMjE2NDMzOTMzNzY3MDE5OTU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac7e43045bf13ae30488879597578fda066af5c96af3de0754c16e4f65adc089d0
hovercard-subject-tagissue:802954978
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/hypertrace/javaagent/255/issue_layout
twitter:imagehttps://opengraph.githubassets.com/10557593e68aa12fb272743cf37f4522a3407a0ca4d29db97c3c376f87fa8fb1/hypertrace/javaagent/issues/255
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/10557593e68aa12fb272743cf37f4522a3407a0ca4d29db97c3c376f87fa8fb1/hypertrace/javaagent/issues/255
og:image:altTried instrumenting one of the hypertrace java service (https://github.com/hypertrace/hypertrace-service/tree/main/hypertrace-data-config-service) with java agent. The service was deployed in k8s c...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefindingrish
hostnamegithub.com
expected-hostnamegithub.com
Nonedf0492960db29b4938cb72070351d6b1d0c6c0767b27ceb8394bbf4fcc0223c6
turbo-cache-controlno-preview
go-importgithub.com/hypertrace/javaagent git https://github.com/hypertrace/javaagent.git
octolytics-dimension-user_id65374698
octolytics-dimension-user_loginhypertrace
octolytics-dimension-repository_id302314733
octolytics-dimension-repository_nwohypertrace/javaagent
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id302314733
octolytics-dimension-repository_network_root_nwohypertrace/javaagent
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release51470c353b8a1f52a88d3e3cc2014b17ab8cc1ce
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/hypertrace/javaagent/issues/255#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fhypertrace%2Fjavaagent%2Fissues%2F255
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fhypertrace%2Fjavaagent%2Fissues%2F255
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=hypertrace%2Fjavaagent
Reloadhttps://github.com/hypertrace/javaagent/issues/255
Reloadhttps://github.com/hypertrace/javaagent/issues/255
Reloadhttps://github.com/hypertrace/javaagent/issues/255
Please reload this pagehttps://github.com/hypertrace/javaagent/issues/255
hypertrace https://github.com/hypertrace
javaagenthttps://github.com/hypertrace/javaagent
Notifications https://github.com/login?return_to=%2Fhypertrace%2Fjavaagent
Fork 14 https://github.com/login?return_to=%2Fhypertrace%2Fjavaagent
Star 37 https://github.com/login?return_to=%2Fhypertrace%2Fjavaagent
Code https://github.com/hypertrace/javaagent
Issues 35 https://github.com/hypertrace/javaagent/issues
Pull requests 4 https://github.com/hypertrace/javaagent/pulls
Discussions https://github.com/hypertrace/javaagent/discussions
Actions https://github.com/hypertrace/javaagent/actions
Projects https://github.com/hypertrace/javaagent/projects
Security and quality 0 https://github.com/hypertrace/javaagent/security
Insights https://github.com/hypertrace/javaagent/pulse
Code https://github.com/hypertrace/javaagent
Issues https://github.com/hypertrace/javaagent/issues
Pull requests https://github.com/hypertrace/javaagent/pulls
Discussions https://github.com/hypertrace/javaagent/discussions
Actions https://github.com/hypertrace/javaagent/actions
Projects https://github.com/hypertrace/javaagent/projects
Security and quality https://github.com/hypertrace/javaagent/security
Insights https://github.com/hypertrace/javaagent/pulse
Service shutdown when instrumenting with javaagent https://github.com/hypertrace/javaagent/issues/255#top
bugSomething isn't workinghttps://github.com/hypertrace/javaagent/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/findingrish
findingrishhttps://github.com/findingrish
on Feb 7, 2021https://github.com/hypertrace/javaagent/issues/255#issue-802954978
https://github.com/hypertrace/hypertrace-service/tree/main/hypertrace-data-config-servicehttps://github.com/hypertrace/hypertrace-service/tree/main/hypertrace-data-config-service
https://hub.docker.com/repository/docker/rishabh691/hypertrace-data-config-servicehttps://hub.docker.com/repository/docker/rishabh691/hypertrace-data-config-service
bugSomething isn't workinghttps://github.com/hypertrace/javaagent/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.