Skip to content

Commit 9cf8af8

Browse files
author
Zoltan Varga
authored
[Digital-Twins] Update for GA, rename namespace, add span (Azure#11872)
1 parent 0a606b6 commit 9cf8af8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+4359
-1743
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 1799 additions & 877 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dataplane.code-workspace

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
"path": "sdk/test-utils/perfstress"
166166
},
167167
{
168-
"path": "sdk\\digitaltwins\\digital-twins"
168+
"path": "sdk\\digitaltwins\\digital-twins-core"
169169
}
170170
],
171171
"settings": {

rush.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,8 @@
578578
"versionPolicyName": "utility"
579579
},
580580
{
581-
"packageName": "@azure/digital-twins",
582-
"projectFolder": "sdk/digitaltwins/digital-twins",
581+
"packageName": "@azure/digital-twins-core",
582+
"projectFolder": "sdk/digitaltwins/digital-twins-core",
583583
"versionPolicyName": "client"
584584
}
585585
]

sdk/digitaltwins/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ extends:
2626
parameters:
2727
ServiceDirectory: digitaltwins
2828
Artifacts:
29-
- name: azure-digital-twins
30-
safeName: azuredigitaltwins
29+
- name: azure-digital-twins-core
30+
safeName: azuredigitaltwinscore
File renamed without changes.

sdk/digitaltwins/digital-twins/CHANGELOG.md renamed to sdk/digitaltwins/digital-twins-core/CHANGELOG.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
## 1.0.0-preview.2 (Unreleased)
44

5-
65
## 1.0.0-preview.1 (2020-09-03)
76

87
- This release is a preview of our efforts to create a client library that is user friendly and
98
idiomatic to the JavaScript ecosystem. The reasons for most of the changes in this update can be found in the
109
[Azure SDK Design Guidelines for TypeScript](https://azure.github.io/azure-sdk/typescript_introduction.html).
1110
- Initial release:
12-
- Package name `@azure/digital-twins`.
11+
- Package name `@azure/digital-twins-core`.
File renamed without changes.

sdk/digitaltwins/digital-twins/README.md renamed to sdk/digitaltwins/digital-twins-core/README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Azure Azure Digital Twins client library for JavaScript
1+
# Azure Azure Digital Twins Core client library for JavaScript
22

33
This package contains an isomorphic SDK for Azure Digital Twins API to provide access to the Azure Digital Twins service for managing twins, models, relationships, etc.
44

@@ -12,7 +12,7 @@ This package contains an isomorphic SDK for Azure Digital Twins API to provide a
1212
### How to Install
1313

1414
```bash
15-
npm install @azure/digital-twins
15+
npm install @azure/digital-twins-core
1616
```
1717

1818
### How to use
@@ -35,7 +35,7 @@ import {
3535
AzureDigitalTwinsAPI,
3636
AzureDigitalTwinsAPIModels,
3737
AzureDigitalTwinsAPIMappers
38-
} from "@azure/digital-twins";
38+
} from "@azure/digital-twins-core";
3939
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
4040
msRestNodeAuth
4141
.interactiveLogin()
@@ -74,11 +74,11 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
7474
<!DOCTYPE html>
7575
<html lang="en">
7676
<head>
77-
<title>@azure/digital-twins sample</title>
77+
<title>@azure/digital-twins-core sample</title>
7878
<script src="node_modules/@azure/core-http/dist/coreHttp.browser.js"></script>
7979
<script src="node_modules/@azure/core-arm/dist/coreArm.js"></script>
8080
<script src="node_modules/@azure/ms-rest-browserauth/dist/msAuth.js"></script>
81-
<script src="node_modules/@azure/digital-twins/dist/digital-twins.js"></script>
81+
<script src="node_modules/@azure/digital-twins-core/dist/digital-twins-core.js"></script>
8282
<script type="text/javascript">
8383
const subscriptionId = "<Subscription_Id>";
8484
const authManager = new msAuth.AuthManager({
@@ -119,25 +119,27 @@ You can learn more about Azure Digital Twins by visiting [Azure Digital Twins Do
119119
## Examples
120120
121121
Please take a look at the Readme file in
122-
[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/digitaltwins/digital-twins/samples)
122+
[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/digitaltwins/digital-twins-core/samples)
123123
directory for detailed examples on how to use this library.
124124
125125
## Troubleshooting
126126
127127
### Enable logs
128128
129-
You can set the following environment variable to get the debug logging output when using this library.
129+
Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
130130
131-
```bash
132-
export AZURE_LOG_LEVEL=verbose
131+
```javascript
132+
import { setLogLevel } from "@azure/logger";
133+
134+
setLogLevel("info");
133135
```
134136
135137
For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/core/logger).
136138
137139
## Next steps
138140
139141
Please take a look at the
140-
[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/digitaltwins/digital-twins/samples)
142+
[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/digitaltwins/digital-twins-core/samples)
141143
directory for detailed examples on how to use this library.
142144
143145
## Contributing
@@ -147,4 +149,4 @@ If you'd like to contribute to this library, please read the [contributing guide
147149
## Related projects
148150
149151
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
150-
![Impressions](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/digitaltwins/digital-twins/README.md)
152+
![Impressions](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/digitaltwins/digital-twins-core/README.md)
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)