{"id":18811740,"url":"https://github.com/logicmonitor/lm-telemetry-sdk-java","last_synced_at":"2025-10-08T08:50:04.363Z","repository":{"id":37925772,"uuid":"408397151","full_name":"logicmonitor/lm-telemetry-sdk-java","owner":"logicmonitor","description":"LM Telemetry SDK for JAVA","archived":false,"fork":false,"pushed_at":"2023-03-06T06:28:37.000Z","size":133,"stargazers_count":0,"open_issues_count":0,"forks_count":6,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-13T21:05:34.128Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/logicmonitor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-20T10:20:20.000Z","updated_at":"2022-06-07T02:31:01.000Z","dependencies_parsed_at":"2024-11-07T23:29:07.308Z","dependency_job_id":"d24129c6-0c59-43d5-a52b-1eb2ca886b61","html_url":"https://github.com/logicmonitor/lm-telemetry-sdk-java","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/logicmonitor/lm-telemetry-sdk-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicmonitor%2Flm-telemetry-sdk-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicmonitor%2Flm-telemetry-sdk-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicmonitor%2Flm-telemetry-sdk-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicmonitor%2Flm-telemetry-sdk-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/logicmonitor","download_url":"https://codeload.github.com/logicmonitor/lm-telemetry-sdk-java/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicmonitor%2Flm-telemetry-sdk-java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278916437,"owners_count":26068090,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T23:27:30.657Z","updated_at":"2025-10-08T08:50:04.328Z","avatar_url":"https://github.com/logicmonitor.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **LM Telemetry SDK Java**\n[![Java CI with Gradle][ci-image]][ci-url]\n[![codecov][codecov-image]][codecov-url]\n\nLM Telemetry SDK java is a wrapper around OpenTelemetry SDK. If you are using LM Telemetry SDK in the application then no need to add OpenTelemetry SDK dependency as it is fetched transitively.\nThis SDK currently detects Resources on the platforms like \u003cbr /\u003e\n- AWS Elastic Compute Cloud\u003cbr /\u003e\n- AWS Lambda\u003cbr /\u003e\n- Azure VM\u003cbr /\u003e\n- Google Cloud Compute Engine (GCE)\u003cbr /\u003e\n\n## Getting Started\n### Auto Instrumentation\nCheck [latest agent version](https://github.com/logicmonitor/lm-telemetry-sdk-java/releases/latest)\n\nFor java Auto instrumentation Logicmonitor provides lm-agent which have all Opentelemetry provided instrumentation support.\u003cbr /\u003e\n\n\n### Auto Instrument your app\n```java\njava -javaagent:/path/lm-telemetry-agent-\u003cversion\u003e-alpha.jar \\\n-Dotel.exporter=otlp \\\n-Dotel.resource.attributes=service.namespace=\u003cservice-namespace\u003e,service.name=\u003cservice-name\u003e \\\n-Dotel.exporter.otlp.endpoint=http://localhost:4317 \\\n-Dotel.exporter.otlp.insecure=true \\\n-jar \u003cyour-app-jar\u003e\n```\n\nBy default, the lm-telemetry Java agent uses OTLP exporter configured to send data to lm-otel collector at http://localhost:4317.\n### Manual Instrumentation\nCheck [Github Package](https://github.com/logicmonitor/lm-telemetry-sdk-java/packages/1615817) \n### Gradle\n\n```groovy\ndependencies {\n    implementation ('com.logicmonitor:lm-telemetry-sdk:0.0.1-alpha')\n}\n```\n\n### Maven\n```xml\n\u003cdependency\u003e\n        \u003cgroupId\u003ecom.logicmonitor\u003c/groupId\u003e\n        \u003cartifactId\u003elm-telemetry-sdk\u003c/artifactId\u003e\n        \u003cversion\u003e0.0.1-alpha\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n##### Using LMResourceDetector to detect resource\n```java\nResource serviceResource = LMResourceDetector.detect();\n\n//Create Span Exporter\nOtlpGrpcSpanExporter spanExporter = OtlpGrpcSpanExporter.builder()\n.setEndpoint(\"http://localhost:4317\")\n.build();\n\n//Create SdkTracerProvider\nSdkTracerProvider sdkTracerProvider = SdkTracerProvider.builder()\n.addSpanProcessor(BatchSpanProcessor.builder(spanExporter)\n.setScheduleDelay(100, TimeUnit.MILLISECONDS).build())\n.setResource(serviceResource)\n.build();\n```\n\nYou can also use environment variable or system properties\nlisted on [OpenTelemetry Document](https://github.com/open-telemetry/opentelemetry-java/blob/main/sdk-extensions/autoconfigure/README.md#opentelemetry-resource)\nto provide resource information.\n\n| System property          | Environment variable     | Description                                                                        |\n|--------------------------|--------------------------|------------------------------------------------------------------------------------|\n| otel.resource.attributes | OTEL_RESOURCE_ATTRIBUTES | Specify resource attributes in the following format: key1=val1,key2=val2,key3=val3 |\n| otel.service.name        | OTEL_SERVICE_NAME        | Specify logical service name. Takes precedence over `service.name` defined with `otel.resource.attributes` |\n\nFor Manual Instrumentation refer [Example](https://github.com/logicmonitor/lm-telemetry-sdk-java/tree/main/example/java-manual-instrumentation)\n\n## OpenTelemetry Component Dependency\n\nList of OpenTelemetry Component Dependencies\n\n| Component                                                                                                                         | Version                                                |\n|-----------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------|\n| [Trace API](https://github.com/open-telemetry/opentelemetry-java/tree/v1.20.1/api)                                                | v\u003c!--VERSION_STABLE--\u003e1.20.1\u003c!--/VERSION_STABLE--\u003e     |\n| [Trace SDK](https://github.com/open-telemetry/opentelemetry-java/tree/v1.20.1/sdk)                                                | v\u003c!--VERSION_STABLE--\u003e1.20.1\u003c!--/VERSION_STABLE--\u003e     |\n| [OpenTelemetry SDK Autoconfigure](https://github.com/open-telemetry/opentelemetry-java/tree/v1.20.1/sdk-extensions/autoconfigure) | v\u003c!--VERSION_ALPHA--\u003e1.20.1-alpha\u003c!--/VERSION_ALPHA--\u003e |\n| [OpenTelemetry AWS Utils](https://github.com/open-telemetry/opentelemetry-java-contrib/tree/v1.20.1/aws-resources)                   | v\u003c!--VERSION_STABLE--\u003e1.20.1\u003c!--/VERSION_STABLE--\u003e      |\n| [OpenTelemetry Semantic Conventions](https://github.com/open-telemetry/opentelemetry-java/tree/v1.20.1/semconv)                   | v\u003c!--VERSION_STABLE--\u003e1.20.1\u003c!--/VERSION_STABLE--\u003e     |\n| [OpenTelemetry Resource Providers](https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/v1.20.1/instrumentation/resources/library)    | v\u003c!--VERSION_STABLE--\u003e1.20.1\u003c!--/VERSION_STABLE--\u003e     |\n\n\n\n[ci-image]: https://github.com/logicmonitor/lm-telemetry-sdk-java/actions/workflows/gradle.yml/badge.svg?branch=main\n[ci-url]: https://github.com/logicmonitor/lm-telemetry-sdk-java/actions/workflows/gradle.yml\n[codecov-image]: https://codecov.io/gh/logicmonitor/lm-telemetry-sdk-java/branch/main/graph/badge.svg?token=ONPPMTKE7F\n[codecov-url]: https://codecov.io/gh/logicmonitor/lm-telemetry-sdk-java\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogicmonitor%2Flm-telemetry-sdk-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogicmonitor%2Flm-telemetry-sdk-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogicmonitor%2Flm-telemetry-sdk-java/lists"}