Граф коммитов

26 Коммитов

Автор SHA1 Сообщение Дата
asafmahlev 1e5668c970 Initial attempt 2024-05-22 17:18:19 +03:00
asafmahlev 62eda4db0d Initial kotlin attempt 2024-05-22 16:19:38 +03:00
Cole 0057e8f061
Removes apache http libraries and replace with azure core httpclient (#335)
* initial commit removing apache http libraries

* updated MSAL wrapper class to include headers in response

* Added TestHttpResponse class to replace BasicHttpResponse in Tests

* Added KustoParseException to replace ParseException from old Apache Client.

* removed todo regarding ParseException

* removed EofSensorInputStream

* added fixme to replace EofSensorInputStream

* Return of the Apache

* Fixed UtilitiesTest
Removed cast to Closeable in CloudInfo

* return UriBuilder to UriUtils

* add proxy options back to HttpClientFactory

* ran formatter

* closeable and fix build

* fix test

* format

* removed extra throws

* Per Ohad review comments:
-Adds custom HTTP status codes
-Integrates status codes
-Uses Context.NONE static factory

* removed caught exceptions that were rethrown with no changes/side effects in QueuedIngestClientImpl per review comments

* removes block on body by using BinaryData
removes Entity references

* ran formatter

* added Tracing object and builder to shorten method signatures
added HttpRequestBuilder to separate request building logic from execute methods in the client, providing better testability
Created BaseClient class to host the inner httpClient
Put post methods on BaseClient so no need for utils class
removed HttpPostUtils.java
updated impacted tests
left notes on Keep-Alive header in ClientFactory
ran formatter

* puts old URIBuilder back in place

* update readme with ProxyOptions

* aligns with PR 342

* fix issue with Closeable

* ran formatter

* Fix sync HttpWrapper implementation

* fix build

* format

* build

* Few bug fixes
Build works also with OKHttp providers

* readd the exclusion of commons-codec for security posture

* adds response timeout and client provider to the client properties wrapper

* removes references to Netty

* removes extra comment

* adds Keep-Alive back to prevent breaking change for users of Keep-Alive. updates CHANGELOG.md
ran formatter.

* removes deflate algorithm from encoding header

* revert removing Apache core (URIBuilder depends on utilities in core)

* remove netty from client factory

* fix

* removes CloseParentResourcesStream.java

* reusable Gzip logic

* factory now uses azure-core default http client options

* I always forget the formatter

* fix test

---------

Co-authored-by: cole <cole.snyder@gmork.tech>
Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
Co-authored-by: ohad bitton <32278684+ohadbitt@users.noreply.github.com>
2024-03-24 14:04:17 +02:00
Yihezkel Schoenbrun 5af94bc64a
Minor sample app fixes (#347)
* Minor SampleApp fixes

* Minor SampleApp fixes
2024-01-29 14:04:08 +02:00
Yihezkel Schoenbrun 325e81c18b
Fix exception java.lang.NoClassDefFoundError: io.opentelemetry.sdk.logs.SdkLogEmitterProviderBuilder (#341)
* Fix exception "java.lang.NoClassDefFoundError: io.opentelemetry.sdk.logs.SdkLogEmitterProviderBuilder"

* Remove unused dependency
2024-01-18 22:55:36 +02:00
Ohad Bitton b6953e9a8b v5.0.3 2023-11-27 16:49:29 +02:00
ohad bitton 2f0a5e1d4c
bump version (#321)
Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
2023-08-24 14:13:31 +03:00
ohad bitton ec58d743fc
bump versions (#314)
Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
2023-07-31 10:21:46 +03:00
Eitan Moed fae7704426
User/t eitanmoed/distributed tracing (#298) 2023-06-26 15:02:47 +03:00
ohad bitton e908bff85f
Guess who's back - Java 8 is back again - tell a friend (#307)
* java 8 and new bom

* changelog and version

* fix

* fix

* comments

---------

Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
2023-06-15 18:08:00 +03:00
AsafMah eb30dfe270
Bump to 4.0.4 + new release method (#290) 2023-03-20 17:10:26 +02:00
AsafMah e69725d042
Bump to 4.0.3 2023-02-14 08:36:05 +02:00
asaharn 4e588debb6
IngestionStatusInTableDescription to support serialization (#287)
* TableClient as transient to support serialization
*Rebuilding TableClient in case of deserialization
* version change to 4.0.2
2023-02-10 14:06:16 +05:30
AsafMah cdfae86c57
Test + version bump 2022-12-15 16:21:32 +02:00
ohad bitton 1b233a68c0
Java 11 and extract Process name (#260)
Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
2022-11-27 11:10:54 +02:00
Tanmaya Panda c3bc04358d
Switch to jackson library from org.json (#272)
* switch to jackson for json

* added formatter

* fixed failing test cases

* fixed testcases

* ran formatter

* added jackson-core to pom

* fixed json string

* fixed string conversion

* bumped release version

* bumped up release version

* addressed Ram's review comments

* formatter changes

* refactored object mapper

* addressed Ram's review comments

* formatter changes

* changes done as per Ohad's comments

* added exception testcase for ResultSetTest

* added bigdecimal for precision in decimal values

* added comment for bigdecimal deserilaization

* made options and parameters mandatory in tojson

* fixed test case

* accept cla

* added formatter

* commit for cla

Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2022-10-27 12:56:38 +05:30
Yihezkel Schoenbrun cd8ff13b8f
Upgrade to v3.2.0 for release (#273) 2022-10-09 14:47:24 +03:00
ronmonetaMicro f9c0ce774a
T ronmoneta/java sample app (#261)
* Basic Setup

* Utils

* Encompassing enums, configuration classes,and loadconfigs

* Preingestionquerying

* Ingestion

* Post Ingestion querying and pom fix. Done.

* Maven formatting

* PR FIXES

* PR FIXES

* Trigger Build

Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2022-08-08 11:02:07 +03:00
ohad bitton 83fbf16e14
3.1.3 2022-07-11 15:48:52 +03:00
Yihezkel Schoenbrun 705bc7d191
Send sourceMessageCreationTime, which can help troubleshoot delays (#254)
* Sending sourceMessageCreationTime would help with troubleshooting delays, which is why it's already included in the C# SDK

* Black!
2022-06-29 08:41:17 +03:00
AsafMah cc67280746
Bump to 3.1.1 2022-05-29 13:23:10 +03:00
AsafMah f23b0780ca
Add formatter plugin (#231)
* Added formatter plugin, right now only starting

* Put config on main file

* Updated style to match ours better.

* Added declaration.

* edit build.yml

* Update style and apply formatting

* Update style and apply formatting

* Tweaked settings again

* Replace with session because that might be the correct path.

* Try formatting

* line endings

* renormalize new lines

* csluuid

* new lines

* new lines

* Run again with clean

* fixed build.yml

* Changed style to be better

* Added some docs
2022-03-29 15:40:49 +03:00
AsafMah 6745d593ec
Fixed newlines and tabs (#234) 2022-03-27 17:03:41 +03:00
AsafMah 892b277f2c
bump quickstart version to 3.1.0 2022-03-20 08:29:47 +02:00
Yihezkel Schoenbrun e2475a4cd2
Remove Quickstart dependency on parent pom (#212) 2022-01-17 16:10:45 +02:00
Yihezkel Schoenbrun 438ec1397f
Quickstart Application (#195)
* Initial commit.
The intent is to review this in its current feature-complete state, so I can also commit the equivalent changes in the Python SDK.
Then, in the next PR (or before merging this PR), I will make some additional improvements as discussed, including break main into individual methods and refactor this "query-ingest-query" approach into an additional "query-only" mode.

* Remove comment

* Optimize if/else

* Minor verbiage changes

* Minor verbiage changes

* Minor verbiage changes

* Update README.md

Co-authored-by: Yochai Gilad <yogilad@microsoft.com>

* - Break main up into methods
- Consider new parameters
- Few code review changes, like consistent periods at end of sentences and filename consistency with Python

* Only alter batching policy if !useExistingTable

* - Pass filesize of 0 for autodetection
- Do not create a File object to get its path; just pass along the provided path
- Move alterBatchingPolicy to within createNewTable, and wrap it in if(false) so it won't run
- Add comment explaining that we generally wouldn't print the output of a control command

* - Improve README text
- Change .alter command to .alter-merge command

* - Change filename kusto-sample-config.json to kusto_sample_config.json to be consistent with Python

* - Fix reference to Python
- Aad a comment for AppCertificate auth

Co-authored-by: Yochai Gilad <yogilad@microsoft.com>
2021-12-05 10:39:22 +02:00