Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Exceptionless Java client

License

NotificationsYou must be signed in to change notification settings

exceptionless/Exceptionless.Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The definition of the word exceptionless is: to be without exception.Exceptionless providesreal-time error reporting for your Java apps. It organizes the gathered information into simple actionable data thatwill help your app become exceptionless!

Using Exceptionless

Refer to the Exceptionless documentation here:Exceptionless Docs.

This project is available to install through Maven.

<!-- https://mvnrepository.com/artifact/com.exceptionless/exceptionless-client --><dependency>    <groupId>com.exceptionless</groupId>    <artifactId>exceptionless-client</artifactId>    <version>0.1.0</version></dependency>

Check the latest version of the libraryhere

Show me the code

classExampleApp {publicstaticvoidmain(String[]args) {privatestaticfinalExceptionlessClientclient =ExceptionlessClient.from(System.getenv("EXCEPTIONLESS_SAMPLE_APP_API_KEY"),System.getenv("EXCEPTIONLESS_SAMPLE_APP_SERVER_URL"));// Submit different events using submitXXX methodsclient.submitLog("Test log");// Submit custom methods using our createXXX methodsclient.submitEvent(EventPluginContext.from(client.createLog("test-log").referenceId("test-reference-id").build()));    }}

Builder Pattern

We love our builders!!! This project heavily utilized the use of builders instead of traditional object creationusingnew. We do this with the help of Project Lombok's@Builder annotation. Read more about theprojecthere. Read more about theannotationhere. Read more about the builderpatternhere.

Example: Customizing your Event Queue implementation

EventQueueIF queue = //get your implementationConfiguration configuration = Configuration.builder()        .serverUrl("http://your-server-url")        .apiKey("your-api-key")        .queue(queue)        .build();ExceptionlessClient client = ExceptionlessClient.builder().configuration(configuration).build();

In this library we have made sure that all the values which are not set by builders fallback to reasonable defaults. Sodon't feel the pressure to supply values for all the fields.Note: Whenever customizing the clientusingConfiguration never forget to supply yourserverUrl andapiKey using aConfiguration object asshown above.

Getting Started (Development)

Intellij

  1. You will need to install:
  2. Clone the repo
  3. Verify your setup usingmvn clean verify

VSCode

  1. You will need to install:
  2. Clone the repo
  3. Verify your setup usingmvn clean verify

Spring Boot Users

You can observeNoClassDefFoundError in your Spring-boot apps because Spring-boot uses v3 ofOkHttpClient while thisclient uses v4. In that case you have to explicitly declare v4 of the library in youpom.xml/build.gradle.

<dependencies>    <dependency>        <groupId>com.exceptionless</groupId>        <artifactId>exceptionless-client</artifactId>        <version>0.1.0</version>    </dependency>    <dependency>        <groupId>org.springframework.boot</groupId>        <artifactId>spring-boot-starter-web</artifactId>    </dependency><!-- EXPLICIT DECLARATION-->    <dependency>        <groupId>com.squareup.okhttp3</groupId>        <artifactId>okhttp</artifactId>        <version>4.9.1</version>    </dependency></dependencies>

VSCode Users

We are usingProject Lombok to automatically generate a lot of code. Intellij can give you IntelliSense by default but for VSCode you may have to installthis extension.

General Data Protection Regulation

By default the Exceptionless Client will report all available metadata including potential PII data. You can fine tunethe collection of information via Data Exclusions or turning off collection completely.

Please visitthedocsfor detailed information on how to configure the client to meet your requirements.

Support

If you need help, please contact us via in-appsupport,open an issueorjoin our chat on Discord. We’re always here to help if you have any questions!

Thanks

Thanks to all the people who have contributed!

contributors

About

Exceptionless Java client

Resources

License

Contributing

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp